Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
·
ef8ed81
1
Parent(s):
6d55b28
gradio 4 update
Browse files
modules/models/ChuanhuAgent.py
CHANGED
@@ -145,7 +145,7 @@ class ChuanhuAgent_Client(BaseLLMModel):
|
|
145 |
self.index_summary = summary
|
146 |
chatbot.append((f"Uploaded {len(files)} files", summary))
|
147 |
logging.info(cb)
|
148 |
-
return gr.
|
149 |
|
150 |
def query_index(self, query):
|
151 |
if self.index is not None:
|
|
|
145 |
self.index_summary = summary
|
146 |
chatbot.append((f"Uploaded {len(files)} files", summary))
|
147 |
logging.info(cb)
|
148 |
+
return gr.update(), chatbot, status
|
149 |
|
150 |
def query_index(self, query):
|
151 |
if self.index is not None:
|
modules/models/GoogleGemini.py
CHANGED
@@ -51,7 +51,7 @@ class GoogleGeminiClient(BaseLLMModel):
|
|
51 |
else:
|
52 |
construct_index(self.api_key, file_src=files)
|
53 |
status = i18n("索引构建完成")
|
54 |
-
return gr.
|
55 |
|
56 |
def get_answer_at_once(self):
|
57 |
genai.configure(api_key=self.api_key)
|
|
|
51 |
else:
|
52 |
construct_index(self.api_key, file_src=files)
|
53 |
status = i18n("索引构建完成")
|
54 |
+
return gr.update(), chatbot, status
|
55 |
|
56 |
def get_answer_at_once(self):
|
57 |
genai.configure(api_key=self.api_key)
|