Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
import time
|
3 |
-
# Dictionnaire de réponses préenregistrées
|
4 |
-
responses = {
|
5 |
-
"bonjour": "Me mvoghé, abora. Me n'éwula nà Boma Langue. Z'a n'éwula nà ?",
|
6 |
-
"effets": "É byôm bièhan ébi.",
|
7 |
-
"chaussures": "Hm-hm, mengôp mam émalé."
|
8 |
-
}
|
9 |
|
10 |
def chatbot(input_text):
|
11 |
print(input_text)
|
12 |
return "Non abonné ."
|
13 |
|
14 |
-
|
15 |
iface = gr.Interface(
|
16 |
fn=chatbot,
|
17 |
inputs="text",
|
|
|
1 |
import gradio as gr
|
2 |
import time
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
def chatbot(input_text):
|
5 |
print(input_text)
|
6 |
return "Non abonné ."
|
7 |
|
8 |
+
|
9 |
iface = gr.Interface(
|
10 |
fn=chatbot,
|
11 |
inputs="text",
|