Update app.py
Browse files
app.py
CHANGED
@@ -15,11 +15,17 @@ def CustomChatGPT(user_input):
|
|
15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
16 |
return ChatGPT_reply
|
17 |
|
|
|
|
|
|
|
|
|
|
|
18 |
demo = gr.Interface(
|
19 |
fn=CustomChatGPT,
|
20 |
-
inputs=gr.inputs.Text(label="Ask a question"),
|
21 |
-
outputs
|
22 |
-
title
|
|
|
23 |
|
24 |
demo.launch()
|
25 |
iface.launch(inline=True)
|
|
|
15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
16 |
return ChatGPT_reply
|
17 |
|
18 |
+
def CustomChatGPT(input_text):
|
19 |
+
# Your function implementation
|
20 |
+
pass
|
21 |
+
|
22 |
+
# Create the interface with a labeled input component
|
23 |
demo = gr.Interface(
|
24 |
fn=CustomChatGPT,
|
25 |
+
inputs=gr.inputs.Text(label="Ask a question"),
|
26 |
+
outputs="text",
|
27 |
+
title="Web(GPT)3 Daily"
|
28 |
+
)
|
29 |
|
30 |
demo.launch()
|
31 |
iface.launch(inline=True)
|