Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -267,7 +267,8 @@ def http_bot(state, temperature, top_p, max_new_tokens, speaker):
|
|
267 |
if tts_format not in prompt and chat_format not in prompt:
|
268 |
state.messages[-1][-1] = output + "β"
|
269 |
else:
|
270 |
-
state.messages[-1][-1] = "β"
|
|
|
271 |
# state.messages[-1][-1] = "[π GENERATING AUDIO {}%...]".format(round(output.count("<|speech_") / max_new_tokens * 100, 1)) + "\n" + output + "β"
|
272 |
yield (state, state.to_gradio_chatbot_public()) + (disable_btn,) * 2
|
273 |
except Exception as e:
|
|
|
267 |
if tts_format not in prompt and chat_format not in prompt:
|
268 |
state.messages[-1][-1] = output + "β"
|
269 |
else:
|
270 |
+
state.messages[-1][-1] = output + "β"
|
271 |
+
# state.messages[-1][-1] = "β"
|
272 |
# state.messages[-1][-1] = "[π GENERATING AUDIO {}%...]".format(round(output.count("<|speech_") / max_new_tokens * 100, 1)) + "\n" + output + "β"
|
273 |
yield (state, state.to_gradio_chatbot_public()) + (disable_btn,) * 2
|
274 |
except Exception as e:
|