Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,8 +105,7 @@ with gr.Blocks() as demo:
|
|
| 105 |
state['past_key_values'] = outputs.past_key_values
|
| 106 |
state['past_ids'] = outputs.sequences[:, :-1]
|
| 107 |
response = infer.processor.decode(outputs.sequences[0, inputs.input_ids.size(1):], skip_special_tokens=True)
|
| 108 |
-
|
| 109 |
-
return response, state
|
| 110 |
|
| 111 |
def gr_chatinterface_chatbot_clear_fn():
|
| 112 |
return {}, {}, 0, 0
|
|
|
|
| 105 |
state['past_key_values'] = outputs.past_key_values
|
| 106 |
state['past_ids'] = outputs.sequences[:, :-1]
|
| 107 |
response = infer.processor.decode(outputs.sequences[0, inputs.input_ids.size(1):], skip_special_tokens=True)
|
| 108 |
+
yield response, state
|
|
|
|
| 109 |
|
| 110 |
def gr_chatinterface_chatbot_clear_fn():
|
| 111 |
return {}, {}, 0, 0
|