Spaces:
Running
Running
iricardoxd
commited on
Commit
•
1cbafc5
1
Parent(s):
2c059ee
Update app.py
Browse files
app.py
CHANGED
@@ -24,9 +24,13 @@ def transcribe(texto): # Desde un mensaje en español
|
|
24 |
|
25 |
return respuesta
|
26 |
|
27 |
-
|
|
|
|
|
|
|
|
|
28 |
gr.Interface(
|
29 |
-
fn=
|
30 |
inputs=[
|
31 |
"text",'state'
|
32 |
],
|
|
|
24 |
|
25 |
return respuesta
|
26 |
|
27 |
+
def chatbot(input, history=[]):
|
28 |
+
output = transcribe(input)
|
29 |
+
history.append((input, output))
|
30 |
+
return history, history
|
31 |
+
|
32 |
gr.Interface(
|
33 |
+
fn=chatbot,
|
34 |
inputs=[
|
35 |
"text",'state'
|
36 |
],
|