Haofei Yu commited on
Commit
40dc0a9
1 Parent(s): a765539

change theme (#27)

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,6 +25,7 @@ def convert_base64(image_array):
25
  return base64_string
26
 
27
 
 
28
  def add_processor(processor_name, display_name, state):
29
  print("add processor ", processor_name)
30
  ctm.add_processor(processor_name)
@@ -177,7 +178,6 @@ def output_tab(query, text, image, state):
177
  processors_output = gr.Textbox(label="STM Chunks", visible=True, lines=5)
178
  competition_output = gr.Textbox(label="Winning Chunk", visible=True, lines=3)
179
  supervisor_output = gr.Textbox(label="Answer", visible=True, lines=2)
180
-
181
  forward_button = gr.Button("Launch CTM")
182
 
183
  forward_button.click(
@@ -203,7 +203,7 @@ def main():
203
  #selected {background-color: orange; width: 180px}
204
  #selected-ctm {background-color: orange;}
205
  """,
206
- theme="gradio/monochrome",
207
  ) as demo:
208
  gr.Image("images/banner.jpg", elem_id="banner-image", show_label=False)
209
  with gr.Row():
 
25
  return base64_string
26
 
27
 
28
+
29
  def add_processor(processor_name, display_name, state):
30
  print("add processor ", processor_name)
31
  ctm.add_processor(processor_name)
 
178
  processors_output = gr.Textbox(label="STM Chunks", visible=True, lines=5)
179
  competition_output = gr.Textbox(label="Winning Chunk", visible=True, lines=3)
180
  supervisor_output = gr.Textbox(label="Answer", visible=True, lines=2)
 
181
  forward_button = gr.Button("Launch CTM")
182
 
183
  forward_button.click(
 
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():