LuigiUR commited on
Commit
0114548
·
1 Parent(s): d589db1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -20,6 +20,16 @@ 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 = "Capril e Queijaria Rancho Alegre")
24
 
25
  demo.launch()
 
20
  messages.append({"role": "assistant", "content": ChatGPT_reply})
21
  return ChatGPT_reply
22
 
23
+
24
+
25
+ inputs = gradio.inputs.Textbox(lines=2, label="Como posso te ajudar?")
26
+ outputs = gradio.outputs.Textbox(label="Resposta")
27
+
28
+ iface = gradio.Interface(fn=sua_funcao, inputs=inputs, outputs=outputs)
29
+ iface.launch(share=True, css="styles.css")
30
+
31
+
32
+
33
  demo = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "Capril e Queijaria Rancho Alegre")
34
 
35
  demo.launch()