dtrejopizzo commited on
Commit
10dd5a8
·
1 Parent(s): 7d8d573

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -15
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
- if __name__ == "__main__":
49
- demo.launch()
50
- quantity
 
 
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()