Haofei Yu
commited on
Commit
•
224a92f
1
Parent(s):
40dc0a9
change back to monochrome (#28)
Browse files* change theme
* change theme
app.py
CHANGED
@@ -65,6 +65,7 @@ def processor_tab():
|
|
65 |
|
66 |
button = gr.Button(
|
67 |
value=display_name,
|
|
|
68 |
)
|
69 |
processor_name = gr.Textbox(
|
70 |
value=model_name, visible=False
|
@@ -87,6 +88,7 @@ def processor_tab():
|
|
87 |
|
88 |
button = gr.Button(
|
89 |
value=display_name,
|
|
|
90 |
)
|
91 |
processor_name = gr.Textbox(
|
92 |
value=model_name, visible=False
|
@@ -196,14 +198,15 @@ def output_tab(query, text, image, state):
|
|
196 |
|
197 |
def main():
|
198 |
with gr.Blocks(
|
|
|
199 |
css="""#chat_container {height: 820px; width: 1000px; margin-left: auto; margin-right: auto;}
|
200 |
#chatbot {height: 600px; overflow: auto;}
|
201 |
#create_container {height: 750px; margin-left: 0px; margin-right: 0px;}
|
202 |
#tokenizer_renderer span {white-space: pre-wrap}
|
203 |
#selected {background-color: orange; width: 180px}
|
|
|
204 |
#selected-ctm {background-color: orange;}
|
205 |
""",
|
206 |
-
theme="JohnSmith9982/small_and_pretty",
|
207 |
) as demo:
|
208 |
gr.Image("images/banner.jpg", elem_id="banner-image", show_label=False)
|
209 |
with gr.Row():
|
|
|
65 |
|
66 |
button = gr.Button(
|
67 |
value=display_name,
|
68 |
+
elem_id="unselected"
|
69 |
)
|
70 |
processor_name = gr.Textbox(
|
71 |
value=model_name, visible=False
|
|
|
88 |
|
89 |
button = gr.Button(
|
90 |
value=display_name,
|
91 |
+
elem_id="unselected"
|
92 |
)
|
93 |
processor_name = gr.Textbox(
|
94 |
value=model_name, visible=False
|
|
|
198 |
|
199 |
def main():
|
200 |
with gr.Blocks(
|
201 |
+
theme="gradio/monochrome",
|
202 |
css="""#chat_container {height: 820px; width: 1000px; margin-left: auto; margin-right: auto;}
|
203 |
#chatbot {height: 600px; overflow: auto;}
|
204 |
#create_container {height: 750px; margin-left: 0px; margin-right: 0px;}
|
205 |
#tokenizer_renderer span {white-space: pre-wrap}
|
206 |
#selected {background-color: orange; width: 180px}
|
207 |
+
#unselected {width: 180px}
|
208 |
#selected-ctm {background-color: orange;}
|
209 |
""",
|
|
|
210 |
) as demo:
|
211 |
gr.Image("images/banner.jpg", elem_id="banner-image", show_label=False)
|
212 |
with gr.Row():
|