Update app.py
Browse files
app.py
CHANGED
@@ -98,8 +98,8 @@ examples = ["Translate ko to en: \n\n μνμ: μλ
νμΈμ! BNKμνμ
|
|
98 |
|
99 |
def response(message, history):
|
100 |
text = inference(message)
|
101 |
-
|
102 |
-
for i in range(len(text)):
|
103 |
-
|
104 |
-
|
105 |
gr.ChatInterface(response,examples=examples).launch()
|
|
|
98 |
|
99 |
def response(message, history):
|
100 |
text = inference(message)
|
101 |
+
return text
|
102 |
+
# for i in range(len(text)):
|
103 |
+
# time.sleep(0.0001)
|
104 |
+
# yield text[: i + 1]
|
105 |
gr.ChatInterface(response,examples=examples).launch()
|