Spaces:
Runtime error
Runtime error
debug
Browse files
app.py
CHANGED
@@ -188,7 +188,7 @@ def translate_Chinese_English(chinese_text):
|
|
188 |
trans_eng_text = tokenizer_chtoen.batch_decode(generated_tokens, skip_special_tokens=True)
|
189 |
return trans_eng_text[0]
|
190 |
|
191 |
-
|
192 |
with gr.Blocks() as demo:
|
193 |
chatbot = gr.Chatbot()
|
194 |
state = gr.State([])
|
@@ -199,7 +199,7 @@ with gr.Blocks() as demo:
|
|
199 |
txt.submit(predict, [txt, state], [chatbot, state])
|
200 |
|
201 |
demo.launch(debug=True)
|
202 |
-
|
203 |
|
204 |
def reset_textbox():
|
205 |
return gr.update(value="")
|
|
|
188 |
trans_eng_text = tokenizer_chtoen.batch_decode(generated_tokens, skip_special_tokens=True)
|
189 |
return trans_eng_text[0]
|
190 |
|
191 |
+
"""
|
192 |
with gr.Blocks() as demo:
|
193 |
chatbot = gr.Chatbot()
|
194 |
state = gr.State([])
|
|
|
199 |
txt.submit(predict, [txt, state], [chatbot, state])
|
200 |
|
201 |
demo.launch(debug=True)
|
202 |
+
"""
|
203 |
|
204 |
def reset_textbox():
|
205 |
return gr.update(value="")
|