Update app.py
Browse files
app.py
CHANGED
|
@@ -19,39 +19,10 @@ 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 |
-
css="""
|
| 23 |
-
.embed-container.svelte-v63enf>.main.svelte-v63enf, .gradio-container.gradio-container-3-21-0.svelte-v63enf.embed-container.dark {
|
| 24 |
-
background-color: #ffffff !important;
|
| 25 |
-
color: #000000 !important;
|
| 26 |
-
}
|
| 27 |
-
gr.Textbox {
|
| 28 |
-
color: #4b4b4b !important;
|
| 29 |
-
background-color: #e8e8e8 !important;
|
| 30 |
-
font-family: 'Arial' !important, sans-serif !important;
|
| 31 |
-
font-size: 16px !important;
|
| 32 |
-
border-radius: 5px !important;
|
| 33 |
-
}
|
| 34 |
-
.input_label, .output_label { /* Change the style of input and output labels */
|
| 35 |
-
color: #3a3a3a;
|
| 36 |
-
font-family: 'Arial', sans-serif;
|
| 37 |
-
font-size: 18px;
|
| 38 |
-
font-weight: bold;
|
| 39 |
-
}
|
| 40 |
-
.button {
|
| 41 |
-
background-color: #007BFF !important;
|
| 42 |
-
color: white !important;
|
| 43 |
-
font-family: 'Arial' !important, sans-serif !important;
|
| 44 |
-
font-size: 16px !important;
|
| 45 |
-
border-radius: 5px !important;
|
| 46 |
-
}
|
| 47 |
-
.button:hover { /* Change the style of the submit button on hover */
|
| 48 |
-
background-color: #0056b3;
|
| 49 |
-
}
|
| 50 |
-
""",
|
| 51 |
|
| 52 |
title="Web(GPT)3"
|
| 53 |
)
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
-
demo.launch()
|
|
|
|
| 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 |
|
| 23 |
title="Web(GPT)3"
|
| 24 |
)
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
+
demo.launch(?__theme=light)
|