Update app.py
Browse files
app.py
CHANGED
@@ -15,19 +15,10 @@ def CustomChatGPT(Question):
|
|
15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
16 |
return ChatGPT_reply
|
17 |
|
18 |
-
|
19 |
fn=CustomChatGPT,
|
20 |
inputs=gr.Textbox(label="Insert jargon here (ask a question):", placeholder="E.g. What are gas fees?"),
|
21 |
outputs=gr.Textbox(label="Get a simple answer in return:"),
|
22 |
-
css="""
|
23 |
-
.gradio-container {
|
24 |
-
color: black;
|
25 |
-
border-style: none;
|
26 |
-
background-color: #FFFFFF;
|
27 |
-
font-family: 'Arial', sans-serif;
|
28 |
-
font-size: 16px;
|
29 |
-
}
|
30 |
-
""",
|
31 |
title="Web(GPT)3"
|
32 |
|
33 |
)
|
|
|
15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
16 |
return ChatGPT_reply
|
17 |
|
18 |
+
with gr.Blocks(theme=gr.themes.Glass()) as demo: gr.Interface(
|
19 |
fn=CustomChatGPT,
|
20 |
inputs=gr.Textbox(label="Insert jargon here (ask a question):", placeholder="E.g. What are gas fees?"),
|
21 |
outputs=gr.Textbox(label="Get a simple answer in return:"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
title="Web(GPT)3"
|
23 |
|
24 |
)
|