Spaces:
Running
Running
esemsc-am4224 commited on
Commit ·
aaa9a19
1
Parent(s): 1344cef
docs: database path change test
Browse files- platform/interface.py +4 -1
platform/interface.py
CHANGED
|
@@ -8,6 +8,7 @@ Date: [Current Date]
|
|
| 8 |
import streamlit as st
|
| 9 |
import pandas as pd
|
| 10 |
import numpy as np
|
|
|
|
| 11 |
|
| 12 |
from database import SQLiteConnector
|
| 13 |
|
|
@@ -110,7 +111,9 @@ class AgentBaseUI:
|
|
| 110 |
|
| 111 |
|
| 112 |
if __name__ == "__main__":
|
| 113 |
-
|
|
|
|
|
|
|
| 114 |
agentbaseui.show_header()
|
| 115 |
agentbaseui.show_agents()
|
| 116 |
agentbaseui.show_platforms()
|
|
|
|
| 8 |
import streamlit as st
|
| 9 |
import pandas as pd
|
| 10 |
import numpy as np
|
| 11 |
+
from pathlib import Path
|
| 12 |
|
| 13 |
from database import SQLiteConnector
|
| 14 |
|
|
|
|
| 111 |
|
| 112 |
|
| 113 |
if __name__ == "__main__":
|
| 114 |
+
BASE_DIR = Path(__file__).parent
|
| 115 |
+
DB_PATH = BASE_DIR / "agentbase.db"
|
| 116 |
+
agentbaseui = AgentBaseUI(db_path=DB_PATH)
|
| 117 |
agentbaseui.show_header()
|
| 118 |
agentbaseui.show_agents()
|
| 119 |
agentbaseui.show_platforms()
|