Update app.py
Browse files
app.py
CHANGED
@@ -15,12 +15,15 @@ def CustomChatGPT(user_input):
|
|
15 |
ChatGPT_reply = response["choices"][0]["message"]["content"]
|
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:"),
|
23 |
title="",
|
|
|
24 |
live=False
|
25 |
)
|
26 |
|
|
|
15 |
ChatGPT_reply = response["choices"][0]["message"]["content"]
|
16 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
17 |
return ChatGPT_reply
|
18 |
+
|
19 |
+
description = "Check for ChatGPT outages <a href="https://status.openai.com/">here.</a>"
|
20 |
+
|
21 |
demo = gr.Interface(
|
22 |
fn=CustomChatGPT,
|
23 |
inputs=gr.Textbox(label="Ask a question:", placeholder="E.g. What are gas fees? ...Can you simplify that with an analogy?"),
|
24 |
outputs=gr.Textbox(label="Answer:"),
|
25 |
title="",
|
26 |
+
description=description,
|
27 |
live=False
|
28 |
)
|
29 |
|