Update app.py
Browse files
app.py
CHANGED
@@ -15,12 +15,34 @@ def CustomChatGPT(Question):
|
|
15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
16 |
return ChatGPT_reply
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
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 |
-
theme="light !important
|
|
|
24 |
)
|
25 |
|
26 |
|
|
|
15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
16 |
return ChatGPT_reply
|
17 |
|
18 |
+
custom_css = '''
|
19 |
+
body {
|
20 |
+
background-color: white;
|
21 |
+
}
|
22 |
+
|
23 |
+
input[type="text"],
|
24 |
+
textarea {
|
25 |
+
border-color: #4CAF50;
|
26 |
+
}
|
27 |
+
|
28 |
+
button {
|
29 |
+
background-color: #4CAF50;
|
30 |
+
border-color: #4CAF50;
|
31 |
+
color: white;
|
32 |
+
}
|
33 |
+
|
34 |
+
.gradio-title {
|
35 |
+
color: #4CAF50;
|
36 |
+
}
|
37 |
+
'''
|
38 |
+
|
39 |
demo = gr.Interface(
|
40 |
fn=CustomChatGPT,
|
41 |
inputs=gr.Textbox(label="Insert jargon here (ask a question):", placeholder="E.g. What are gas fees?"),
|
42 |
outputs=gr.Textbox(label="Get a simple answer in return:"),
|
43 |
title="Web(GPT)3",
|
44 |
+
theme="light" !important,
|
45 |
+
css=custom_css
|
46 |
)
|
47 |
|
48 |
|