Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import openai
|
| 2 |
-
import gradio
|
| 3 |
|
| 4 |
openai.api_key = "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"
|
| 5 |
|
|
@@ -15,9 +15,9 @@ def CustomChatGPT(user_input):
|
|
| 15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
| 16 |
return ChatGPT_reply
|
| 17 |
|
| 18 |
-
demo =
|
| 19 |
fn=CustomChatGPT,
|
| 20 |
-
inputs = "text"
|
| 21 |
outputs = "text",
|
| 22 |
title = "Web(GPT)3 Daily")
|
| 23 |
|
|
|
|
| 1 |
import openai
|
| 2 |
+
import gradio as gr
|
| 3 |
|
| 4 |
openai.api_key = "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"
|
| 5 |
|
|
|
|
| 15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
| 16 |
return ChatGPT_reply
|
| 17 |
|
| 18 |
+
demo = gr.Interface(
|
| 19 |
fn=CustomChatGPT,
|
| 20 |
+
inputs = "text",
|
| 21 |
outputs = "text",
|
| 22 |
title = "Web(GPT)3 Daily")
|
| 23 |
|