Update app.py
Browse files
app.py
CHANGED
@@ -15,13 +15,11 @@ def CustomChatGPT(Question):
|
|
15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
16 |
return ChatGPT_reply
|
17 |
|
18 |
-
with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
)
|
25 |
-
|
26 |
|
27 |
demo.launch()
|
|
|
15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
16 |
return ChatGPT_reply
|
17 |
|
18 |
+
with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
19 |
+
textbox = gr.Textbox(label="Insert jargon here (ask a question):", placeholder="E.g. What are gas fees?")
|
20 |
+
with gr.Row():
|
21 |
+
button = gr.Button("Submit", variant="primary")
|
22 |
+
clear = gr.Button("Clear")
|
23 |
+
output = gr.Textbox(label="Get a simple answer in return:")
|
|
|
|
|
24 |
|
25 |
demo.launch()
|