dtrejopizzo commited on
Commit
ab84625
·
1 Parent(s): cbcd5da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -25,12 +25,16 @@ def chatbot(input, history=[]):
25
  history.append((input, output))
26
  return history, history
27
 
28
- gr.Interface(fn=chatbot,
29
  [
30
  gr.Textbox(label="¿A donde queres ir?", lines=1, value="Roma"),
31
  gr.Slider(1, 30, value=4),
32
  gr.Dropdown(["solo/a", "amigos", "pareja", "familia"]),
33
  gr.Dropdown(["puntos turisticos", "museos", "parques", "teatro", "trekking", "playas"], value=["puntos turisticos"], multiselect=True),
34
  ],
35
- outputs = ["chatbot",'state'],
36
- allow_flagging="manual").launch()
 
 
 
 
 
25
  history.append((input, output))
26
  return history, history
27
 
28
+ demo = gr.Interface(sentence_builder,
29
  [
30
  gr.Textbox(label="¿A donde queres ir?", lines=1, value="Roma"),
31
  gr.Slider(1, 30, value=4),
32
  gr.Dropdown(["solo/a", "amigos", "pareja", "familia"]),
33
  gr.Dropdown(["puntos turisticos", "museos", "parques", "teatro", "trekking", "playas"], value=["puntos turisticos"], multiselect=True),
34
  ],
35
+ "text",
36
+ )
37
+
38
+ if __name__ == "__main__":
39
+ demo.launch()
40
+ quantity