Update app.py
Browse files
app.py
CHANGED
|
@@ -2,10 +2,10 @@ import gradio as gr
|
|
| 2 |
import g4f
|
| 3 |
|
| 4 |
def chatbot_interaction(input_text):
|
| 5 |
-
|
| 6 |
print(input_text)
|
| 7 |
response = g4f.ChatCompletion.create(model='gpt-3.5-turbo', provider=g4f.Provider.DeepAi, messages=[
|
| 8 |
-
{"role":user, "content":
|
| 9 |
|
| 10 |
print(response)
|
| 11 |
return response
|
|
@@ -14,6 +14,6 @@ iface = gr.Interface(
|
|
| 14 |
inputs="text",
|
| 15 |
outputs=gr.Textbox(label="Réponse"),
|
| 16 |
title="bot",
|
| 17 |
-
description="By Isa Ibn Maryam.
|
| 18 |
|
| 19 |
iface.launch()
|
|
|
|
| 2 |
import g4f
|
| 3 |
|
| 4 |
def chatbot_interaction(input_text):
|
| 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. resous ça : "
|
| 6 |
print(input_text)
|
| 7 |
response = g4f.ChatCompletion.create(model='gpt-3.5-turbo', provider=g4f.Provider.DeepAi, messages=[
|
| 8 |
+
{"role": "user", "content":input_texxt}], stream=False )
|
| 9 |
|
| 10 |
print(response)
|
| 11 |
return response
|
|
|
|
| 14 |
inputs="text",
|
| 15 |
outputs=gr.Textbox(label="Réponse"),
|
| 16 |
title="bot",
|
| 17 |
+
description="By Isa Ibn Maryam. 😂😂 Vas dormir ! Espace fermé ! ")
|
| 18 |
|
| 19 |
iface.launch()
|