style: change theme for gradio UI
Browse files
app.py
CHANGED
|
@@ -101,8 +101,15 @@ body, .markdown-content, .container, .chat-container, .message-container {
|
|
| 101 |
line-height: 1.7;
|
| 102 |
}
|
| 103 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
-
|
|
|
|
| 106 |
with gr.Row(elem_classes="container"):
|
| 107 |
# with gr.Column(scale=0.5):
|
| 108 |
# gr.Image(value=LOGO_PATH, height=100, show_label=False, show_download_button=False, show_fullscreen_button=False)
|
|
@@ -128,7 +135,7 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
|
|
| 128 |
container=False,
|
| 129 |
scale=4
|
| 130 |
),
|
| 131 |
-
theme="soft",
|
| 132 |
examples=[
|
| 133 |
"Describe the database",
|
| 134 |
"List all tables in the database",
|
|
@@ -164,6 +171,6 @@ if __name__ == "__main__":
|
|
| 164 |
demo.launch(
|
| 165 |
server_name="0.0.0.0",
|
| 166 |
# server_port=7860,
|
| 167 |
-
share=True,
|
| 168 |
debug=True
|
| 169 |
)
|
|
|
|
| 101 |
line-height: 1.7;
|
| 102 |
}
|
| 103 |
"""
|
| 104 |
+
#theme = gr.themes.Origin()
|
| 105 |
+
theme = gr.themes.Soft()
|
| 106 |
+
#theme = gr.themes.Monochrome()
|
| 107 |
+
#theme = gr.themes.Glass()
|
| 108 |
+
#theme = gr.themes.GoogleFont(name="Inter")
|
| 109 |
+
#theme = gr.themes.Base()
|
| 110 |
|
| 111 |
+
|
| 112 |
+
with gr.Blocks(css=custom_css, theme=theme) as demo:
|
| 113 |
with gr.Row(elem_classes="container"):
|
| 114 |
# with gr.Column(scale=0.5):
|
| 115 |
# gr.Image(value=LOGO_PATH, height=100, show_label=False, show_download_button=False, show_fullscreen_button=False)
|
|
|
|
| 135 |
container=False,
|
| 136 |
scale=4
|
| 137 |
),
|
| 138 |
+
#theme="soft",
|
| 139 |
examples=[
|
| 140 |
"Describe the database",
|
| 141 |
"List all tables in the database",
|
|
|
|
| 171 |
demo.launch(
|
| 172 |
server_name="0.0.0.0",
|
| 173 |
# server_port=7860,
|
| 174 |
+
#share=True,
|
| 175 |
debug=True
|
| 176 |
)
|