Spaces:
Sleeping
Sleeping
dtrejopizzo
commited on
Commit
·
10dd5a8
1
Parent(s):
7d8d573
Update app.py
Browse files
app.py
CHANGED
@@ -32,19 +32,8 @@ def chatbot(input, history=[]):
|
|
32 |
output = openai_chat(input)
|
33 |
history.append((input, output))
|
34 |
return history, history
|
35 |
-
|
36 |
-
demo = gr.Interface(sentence_builder,
|
37 |
-
[
|
38 |
-
gr.Textbox(label="¿A donde queres ir?", lines=1, value="Roma"),
|
39 |
-
gr.Slider(1, 30, value=4),
|
40 |
-
gr.Dropdown(["solo/a", "amigos", "pareja", "familia"]),
|
41 |
-
gr.Dropdown(["puntos turisticos", "museos", "parques", "teatro", "trekking", "playas"], value=["puntos turisticos"], multiselect=True),
|
42 |
-
],
|
43 |
-
"text",
|
44 |
-
title=title,
|
45 |
-
examples=examples,
|
46 |
-
)
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
32 |
output = openai_chat(input)
|
33 |
history.append((input, output))
|
34 |
return history, history
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
+
gr.Interface(fn = chatbot,
|
37 |
+
inputs = ["text",'state'],
|
38 |
+
outputs = ["chatbot",'state'],
|
39 |
+
allow_flagging="manual").launch()
|