Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -257,7 +257,7 @@ def stream_to_gradio(
|
|
| 257 |
jp=hf_chat(None,"google/gemma-2-27b-it",f"以下を日本語に翻訳して:{final_answer.to_string()}")
|
| 258 |
yield gr.ChatMessage(
|
| 259 |
role="assistant",
|
| 260 |
-
content=f"**Final answer:**\n{final_answer.to_string()}\n\n
|
| 261 |
)
|
| 262 |
elif isinstance(final_answer, AgentImage):
|
| 263 |
yield gr.ChatMessage(
|
|
|
|
| 257 |
jp=hf_chat(None,"google/gemma-2-27b-it",f"以下を日本語に翻訳して:{final_answer.to_string()}")
|
| 258 |
yield gr.ChatMessage(
|
| 259 |
role="assistant",
|
| 260 |
+
content=f"**Final answer:**\n{final_answer.to_string()}\n\n**日本語訳:**\n{jp}",
|
| 261 |
)
|
| 262 |
elif isinstance(final_answer, AgentImage):
|
| 263 |
yield gr.ChatMessage(
|