Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -290,6 +290,7 @@ def http_bot(state, temperature, top_p, max_new_tokens, speaker):
|
|
290 |
# state.messages[-1][-1] = "[π GENERATING AUDIO {}%...]".format(round(output.count("<|speech_") / max_new_tokens * 100, 1)) + "\n" + output + "β"
|
291 |
yield (state, state.to_gradio_chatbot_public()) + (disable_btn,) * 2
|
292 |
except Exception as e:
|
|
|
293 |
state.messages[-1][-1] = server_error_msg
|
294 |
yield (state, state.to_gradio_chatbot_public()) + (enable_btn,) * 2
|
295 |
return
|
|
|
290 |
# state.messages[-1][-1] = "[π GENERATING AUDIO {}%...]".format(round(output.count("<|speech_") / max_new_tokens * 100, 1)) + "\n" + output + "β"
|
291 |
yield (state, state.to_gradio_chatbot_public()) + (disable_btn,) * 2
|
292 |
except Exception as e:
|
293 |
+
print(e)
|
294 |
state.messages[-1][-1] = server_error_msg
|
295 |
yield (state, state.to_gradio_chatbot_public()) + (enable_btn,) * 2
|
296 |
return
|