Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def CustomChatGPT(user_input):
|
|
16 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
17 |
return ChatGPT_reply
|
18 |
|
19 |
-
|
20 |
fn=CustomChatGPT,
|
21 |
inputs=gr.Textbox(label="Ask a question:", placeholder="E.g. What are gas fees? ...Can you simplify that with an analogy?"),
|
22 |
outputs=gr.Textbox(label="Answer:"),
|
@@ -24,5 +24,5 @@ WebGPT3 = gr.Interface(
|
|
24 |
live=False
|
25 |
)
|
26 |
|
27 |
-
|
28 |
|
|
|
16 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
17 |
return ChatGPT_reply
|
18 |
|
19 |
+
demo = gr.Interface(
|
20 |
fn=CustomChatGPT,
|
21 |
inputs=gr.Textbox(label="Ask a question:", placeholder="E.g. What are gas fees? ...Can you simplify that with an analogy?"),
|
22 |
outputs=gr.Textbox(label="Answer:"),
|
|
|
24 |
live=False
|
25 |
)
|
26 |
|
27 |
+
demo.launch()
|
28 |
|