'r'
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import g4f
|
3 |
-
|
4 |
-
|
|
|
|
|
5 |
input_texxt ="Tu es un assistant intelligent.ton but est d'assiter au mieux que tu peux. tu as ete creer par le docteur Traoré et tu t'appelles Mariam." + input_text
|
6 |
print(input_text)
|
7 |
response = g4f.ChatCompletion.create(model='gpt-3.5-turbo', provider=g4f.Provider.DeepAi, messages=[
|
@@ -16,4 +18,5 @@ iface = gr.Interface(
|
|
16 |
title="bot",
|
17 |
description="By Isa Ibn Maryam. 😂😂 Vas dormir ! Espace fermé ! ")
|
18 |
|
19 |
-
iface.launch()
|
|
|
|
1 |
import gradio as gr
|
2 |
import g4f
|
3 |
+
import asyncio
|
4 |
+
|
5 |
+
|
6 |
+
async def chatbot_interaction(input_text):
|
7 |
input_texxt ="Tu es un assistant intelligent.ton but est d'assiter au mieux que tu peux. tu as ete creer par le docteur Traoré et tu t'appelles Mariam." + input_text
|
8 |
print(input_text)
|
9 |
response = g4f.ChatCompletion.create(model='gpt-3.5-turbo', provider=g4f.Provider.DeepAi, messages=[
|
|
|
18 |
title="bot",
|
19 |
description="By Isa Ibn Maryam. 😂😂 Vas dormir ! Espace fermé ! ")
|
20 |
|
21 |
+
asyncio.run(iface.launch())
|
22 |
+
|