Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,6 @@ def wrap(x):
|
|
10 |
return textwrap.fill(x, replace_whitespace=False, fix_sentence_endings=True)
|
11 |
|
12 |
def chat(prompt):
|
13 |
-
|
14 |
-
print(i, end='')
|
15 |
-
time.sleep(0.2)
|
16 |
|
17 |
gr.Interface(fn=chat, inputs="text", outputs="text").launch()
|
|
|
10 |
return textwrap.fill(x, replace_whitespace=False, fix_sentence_endings=True)
|
11 |
|
12 |
def chat(prompt):
|
13 |
+
return chatbot(prompt)[0]['generated_text']
|
|
|
|
|
14 |
|
15 |
gr.Interface(fn=chat, inputs="text", outputs="text").launch()
|