Haofei Yu
commited on
make the unselected color white (#25)
Browse files
app.py
CHANGED
@@ -69,7 +69,6 @@ def processor_tab():
|
|
69 |
|
70 |
button = gr.Button(
|
71 |
value=display_name,
|
72 |
-
elem_id="unselected"
|
73 |
)
|
74 |
processor_name = gr.Textbox(
|
75 |
value=model_name, visible=False
|
@@ -92,7 +91,6 @@ def processor_tab():
|
|
92 |
|
93 |
button = gr.Button(
|
94 |
value=display_name,
|
95 |
-
elem_id="unselected"
|
96 |
)
|
97 |
processor_name = gr.Textbox(
|
98 |
value=model_name, visible=False
|
@@ -185,7 +183,7 @@ def output_tab(query, text, image, state):
|
|
185 |
competition_output = gr.Textbox(label="Winning Chunk", visible=True, lines=3)
|
186 |
supervisor_output = gr.Textbox(label="Answer", visible=True, lines=2)
|
187 |
|
188 |
-
forward_button = gr.Button("Launch CTM"
|
189 |
|
190 |
forward_button.click(
|
191 |
fn=forward,
|
@@ -208,9 +206,7 @@ def main():
|
|
208 |
#create_container {height: 750px; margin-left: 0px; margin-right: 0px;}
|
209 |
#tokenizer_renderer span {white-space: pre-wrap}
|
210 |
#selected {background-color: orange; width: 180px}
|
211 |
-
#unselected {width: 180px;}
|
212 |
#selected-ctm {background-color: orange;}
|
213 |
-
#unselected-ctm {}
|
214 |
""",
|
215 |
theme="gradio/monochrome",
|
216 |
) as demo:
|
|
|
69 |
|
70 |
button = gr.Button(
|
71 |
value=display_name,
|
|
|
72 |
)
|
73 |
processor_name = gr.Textbox(
|
74 |
value=model_name, visible=False
|
|
|
91 |
|
92 |
button = gr.Button(
|
93 |
value=display_name,
|
|
|
94 |
)
|
95 |
processor_name = gr.Textbox(
|
96 |
value=model_name, visible=False
|
|
|
183 |
competition_output = gr.Textbox(label="Winning Chunk", visible=True, lines=3)
|
184 |
supervisor_output = gr.Textbox(label="Answer", visible=True, lines=2)
|
185 |
|
186 |
+
forward_button = gr.Button("Launch CTM")
|
187 |
|
188 |
forward_button.click(
|
189 |
fn=forward,
|
|
|
206 |
#create_container {height: 750px; margin-left: 0px; margin-right: 0px;}
|
207 |
#tokenizer_renderer span {white-space: pre-wrap}
|
208 |
#selected {background-color: orange; width: 180px}
|
|
|
209 |
#selected-ctm {background-color: orange;}
|
|
|
210 |
""",
|
211 |
theme="gradio/monochrome",
|
212 |
) as demo:
|