InfiniteValueMe commited on
Commit
ec8db62
·
verified ·
1 Parent(s): faf4e63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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