Shafagh99 commited on
Commit
e235df0
·
verified ·
1 Parent(s): ae1b5c9

trying to fix returning the result

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -150,8 +150,8 @@ def chat_fn(message, history):
150
  )
151
  result_str = str(result)
152
  history = history + [(message, result_str)]
153
- # ChatInterface expects (assistant_message, updated_history)
154
- return result_str, history
155
 
156
 
157
  demo = gr.ChatInterface(fn=chat_fn, title="SmolAgents News & Tools Agent")
 
150
  )
151
  result_str = str(result)
152
  history = history + [(message, result_str)]
153
+ # ChatInterface expects (assistant_message)
154
+ return result_str
155
 
156
 
157
  demo = gr.ChatInterface(fn=chat_fn, title="SmolAgents News & Tools Agent")