Spaces:
Running
Running
feihu.hf
commited on
Commit
·
7f8b3cb
1
Parent(s):
7d4d0ce
fix bug
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os
|
2 |
-
os.system("pip install 'https://modelscope-studios.oss-cn-zhangjiakou.aliyuncs.com/SDK/gradio/gradio-4.44.0-py3-none-any.whl?OSSAccessKeyId=LTAI5tCGZWFdkWKivGKCtvTD&Expires=361727611665&Signature=iynlOFVFiaF3OmxatNMHUBPfb3o%3D'")
|
3 |
-
os.system("pip install starlette==0.38.6 fastapi==0.112.4")
|
4 |
|
5 |
from typing import List, Tuple, Union
|
6 |
from web_ui import WebUI
|
|
|
1 |
import os
|
2 |
+
# os.system("pip install 'https://modelscope-studios.oss-cn-zhangjiakou.aliyuncs.com/SDK/gradio/gradio-4.44.0-py3-none-any.whl?OSSAccessKeyId=LTAI5tCGZWFdkWKivGKCtvTD&Expires=361727611665&Signature=iynlOFVFiaF3OmxatNMHUBPfb3o%3D'")
|
3 |
+
# os.system("pip install starlette==0.38.6 fastapi==0.112.4")
|
4 |
|
5 |
from typing import List, Tuple, Union
|
6 |
from web_ui import WebUI
|
web_ui.py
CHANGED
@@ -189,8 +189,8 @@ class WebUI:
|
|
189 |
else:
|
190 |
input_promise = input_promise.then(
|
191 |
self.agent_run,
|
192 |
-
[chatbot, history],
|
193 |
-
[chatbot, history],
|
194 |
)
|
195 |
|
196 |
input_promise.then(self.flushed, None, [input, agent_selector])
|
|
|
189 |
else:
|
190 |
input_promise = input_promise.then(
|
191 |
self.agent_run,
|
192 |
+
[chatbot, history, agent_selector],
|
193 |
+
[chatbot, history, agent_selector],
|
194 |
)
|
195 |
|
196 |
input_promise.then(self.flushed, None, [input, agent_selector])
|