Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,7 +106,7 @@ def chat_with_infinite_agent(message, lang, history):
|
|
| 106 |
#Gradio UI
|
| 107 |
css_path = os.path.join(os.path.dirname(__file__), "style.css")
|
| 108 |
|
| 109 |
-
def api_predict(message, lang="English"):
|
| 110 |
history, _ = chat_with_infinite_agent(message, lang, [])
|
| 111 |
return {"response": history[-1]["content"]}
|
| 112 |
|
|
|
|
| 106 |
#Gradio UI
|
| 107 |
css_path = os.path.join(os.path.dirname(__file__), "style.css")
|
| 108 |
|
| 109 |
+
def api_predict(message: str, lang: str = "English") -> dict:
|
| 110 |
history, _ = chat_with_infinite_agent(message, lang, [])
|
| 111 |
return {"response": history[-1]["content"]}
|
| 112 |
|