Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def reply(msg,history):
|
|
60 |
p=m.choices[0].message.content
|
61 |
historias.append({"role":"assistant","content":p})
|
62 |
try:
|
63 |
-
l=
|
64 |
except Exception as e:
|
65 |
print(p,"->")
|
66 |
historias.pop(0)
|
@@ -82,7 +82,7 @@ def set_theme(theme):
|
|
82 |
historias.pop(0)
|
83 |
p=m.choices[0].message.content
|
84 |
historias.append({"role":"assistant","content":p})
|
85 |
-
l=
|
86 |
|
87 |
cc=gr.Chatbot(value=llamatochat(historias), visible=False)
|
88 |
resp=[gr.Textbox(visible=False),gr.Button(visible=False),gr.Textbox(visible=True,value=l.get("msg")),cc]
|
|
|
60 |
p=m.choices[0].message.content
|
61 |
historias.append({"role":"assistant","content":p})
|
62 |
try:
|
63 |
+
l=loads(p)
|
64 |
except Exception as e:
|
65 |
print(p,"->")
|
66 |
historias.pop(0)
|
|
|
82 |
historias.pop(0)
|
83 |
p=m.choices[0].message.content
|
84 |
historias.append({"role":"assistant","content":p})
|
85 |
+
l=loads(p)
|
86 |
|
87 |
cc=gr.Chatbot(value=llamatochat(historias), visible=False)
|
88 |
resp=[gr.Textbox(visible=False),gr.Button(visible=False),gr.Textbox(visible=True,value=l.get("msg")),cc]
|