Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
| 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()
|