LuigiUR commited on
Commit
516503a
·
1 Parent(s): cc0d637

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -20,6 +20,9 @@ def CustomChatGPT(user_input):
20
  messages.append({"role": "assistant", "content": ChatGPT_reply})
21
  return ChatGPT_reply
22
 
23
- demo = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "Restaurante ACME")
 
 
 
24
 
25
  demo.launch()
 
20
  messages.append({"role": "assistant", "content": ChatGPT_reply})
21
  return ChatGPT_reply
22
 
23
+ user_input = gradio.inputs.Textbox(lines=2, placeholder="Me pergunte qualquer coisa...", label="Como posso te ajudar a vender?")
24
+ output = gradio.outputs.Textbox(label="Resposta:")
25
+
26
+ demo = gradio.Interface(fn=CustomChatGPT, inputs = user_input, outputs = output, title = "Sales Coach")
27
 
28
  demo.launch()