Update app.py
Browse files
app.py
CHANGED
@@ -12,11 +12,11 @@ async def chatbot_interaction(input_text):
|
|
12 |
print(response)
|
13 |
return response
|
14 |
iface = gr.Interface(
|
15 |
-
fn=chatbot_interaction,
|
16 |
inputs="text",
|
17 |
outputs=gr.Textbox(label="Réponse"),
|
18 |
title="bot",
|
19 |
description="By Isa Ibn Maryam. 😂😂 Vas dormir ! Espace fermé ! ")
|
20 |
|
21 |
-
|
22 |
|
|
|
12 |
print(response)
|
13 |
return response
|
14 |
iface = gr.Interface(
|
15 |
+
fn=asyncio.run(chatbot_interaction),
|
16 |
inputs="text",
|
17 |
outputs=gr.Textbox(label="Réponse"),
|
18 |
title="bot",
|
19 |
description="By Isa Ibn Maryam. 😂😂 Vas dormir ! Espace fermé ! ")
|
20 |
|
21 |
+
iface.launch()
|
22 |
|