Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,9 @@ def chatbot(query, history, system_message, max_length, temperature, top_k, top_
|
|
28 |
)
|
29 |
# Decode generated text
|
30 |
response = tokenizer.decode(final_outputs[0], skip_special_tokens=True)
|
|
|
31 |
|
32 |
-
return response
|
33 |
|
34 |
# Gradio ChatInterface
|
35 |
demo = gr.ChatInterface(
|
|
|
28 |
)
|
29 |
# Decode generated text
|
30 |
response = tokenizer.decode(final_outputs[0], skip_special_tokens=True)
|
31 |
+
response = response.split('"')[1]
|
32 |
|
33 |
+
return response
|
34 |
|
35 |
# Gradio ChatInterface
|
36 |
demo = gr.ChatInterface(
|