Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,11 @@ def CustomChatGPT(user_input):
|
|
| 15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
| 16 |
return ChatGPT_reply
|
| 17 |
|
| 18 |
-
demo = gradio.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
|
| 21 |
demo.launch()
|
|
|
|
| 15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
| 16 |
return ChatGPT_reply
|
| 17 |
|
| 18 |
+
demo = gradio.Interface(
|
| 19 |
+
fn=CustomChatGPT,
|
| 20 |
+
inputs = "text" (label="Ask a question"),
|
| 21 |
+
outputs = "text",
|
| 22 |
+
title = "Web(GPT)3 Daily")
|
| 23 |
|
| 24 |
|
| 25 |
demo.launch()
|