Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -158,7 +158,7 @@ with gr.Blocks() as demo:
|
|
158 |
with gr.Column(scale=3):
|
159 |
# Custom chat function wrapper to update state
|
160 |
def chat_with_state(message, history, state, temperature, top_p):
|
161 |
-
for partial_response
|
162 |
# Update our state with each yield
|
163 |
state = history.copy()
|
164 |
yield partial_response, state
|
|
|
158 |
with gr.Column(scale=3):
|
159 |
# Custom chat function wrapper to update state
|
160 |
def chat_with_state(message, history, state, temperature, top_p):
|
161 |
+
for partial_response in predict(message, history, temperature, top_p):
|
162 |
# Update our state with each yield
|
163 |
state = history.copy()
|
164 |
yield partial_response, state
|