Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,9 +21,9 @@ class SearchAgentUI:
|
|
21 |
|
22 |
|
23 |
@st.cache_resource
|
24 |
-
def get_agent(_self):
|
25 |
index_path = INDEX_PATH
|
26 |
-
return agent.Agent(index_path)
|
27 |
|
28 |
def download_index_from_gdrive(self) -> bool:
|
29 |
try:
|
@@ -257,7 +257,7 @@ class SearchAgentUI:
|
|
257 |
return
|
258 |
|
259 |
import agent
|
260 |
-
agent = self.get_agent()
|
261 |
|
262 |
# Provider selection in sidebar
|
263 |
with st.sidebar:
|
|
|
21 |
|
22 |
|
23 |
@st.cache_resource
|
24 |
+
def get_agent(_self,api_keys):
|
25 |
index_path = INDEX_PATH
|
26 |
+
return agent.Agent(index_path,api_keys)
|
27 |
|
28 |
def download_index_from_gdrive(self) -> bool:
|
29 |
try:
|
|
|
257 |
return
|
258 |
|
259 |
import agent
|
260 |
+
agent = self.get_agent(api_keys)
|
261 |
|
262 |
# Provider selection in sidebar
|
263 |
with st.sidebar:
|