pwilczewski commited on
Commit
fb4a2eb
·
1 Parent(s): 830eb94

just trying random stuff now

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -157,7 +157,7 @@ async def stream_response(input_data):
157
  thread["thread_id"],
158
  assistant_id,
159
  input=input_data,
160
- stream_mode="values"
161
  ):
162
  yield chunk.data # Yield the data as it is received
163
 
@@ -166,5 +166,5 @@ def gradio_interface(input_text):
166
  input_data = {"messages": [HumanMessage(content="Run the analysis")]}
167
  return stream_response(input_data)
168
 
169
- demo = gr.Interface(fn=gradio_interface, inputs="text", outputs="text", live=True)
170
  demo.launch()
 
157
  thread["thread_id"],
158
  assistant_id,
159
  input=input_data,
160
+ stream_mode="updates"
161
  ):
162
  yield chunk.data # Yield the data as it is received
163
 
 
166
  input_data = {"messages": [HumanMessage(content="Run the analysis")]}
167
  return stream_response(input_data)
168
 
169
+ demo = gr.Interface(fn=gradio_interface, inputs="text", outputs="text")
170
  demo.launch()