dar-tau commited on
Commit
8670d11
·
verified ·
1 Parent(s): 4009e7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -225,7 +225,7 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
225
  # gr.Markdown('<span style="font-size:180px;">🤔</span>')
226
 
227
  with gr.Group():
228
- model_chooser = gr.Radio(label='Choose Your Model', choices=list(model_info.keys()), value=model_name)
229
  load_on_gpu = gr.Checkbox(label='Load on GPU', visible=False, value=True)
230
  welcome_model = gr.Markdown(welcome_message.format(model_name=model_name))
231
  with gr.Blocks() as demo_main:
@@ -290,7 +290,7 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
290
  raw_original_prompt.change(lambda: [gr.Button(visible=False) for _ in range(MAX_PROMPT_TOKENS)], [], tokens_container)
291
 
292
  extra_components = [raw_interpretation_prompt, raw_original_prompt, original_prompt_btn]
293
- model_chooser.change(reset_model, [model_chooser, load_on_gpu, *extra_components],
294
- [welcome_model, *interpretation_bubbles, *tokens_container, *extra_components])
295
 
296
  demo.launch()
 
225
  # gr.Markdown('<span style="font-size:180px;">🤔</span>')
226
 
227
  with gr.Group():
228
+ # model_chooser = gr.Radio(label='Choose Your Model', choices=list(model_info.keys()), value=model_name)
229
  load_on_gpu = gr.Checkbox(label='Load on GPU', visible=False, value=True)
230
  welcome_model = gr.Markdown(welcome_message.format(model_name=model_name))
231
  with gr.Blocks() as demo_main:
 
290
  raw_original_prompt.change(lambda: [gr.Button(visible=False) for _ in range(MAX_PROMPT_TOKENS)], [], tokens_container)
291
 
292
  extra_components = [raw_interpretation_prompt, raw_original_prompt, original_prompt_btn]
293
+ # model_chooser.change(reset_model, [model_chooser, load_on_gpu, *extra_components],
294
+ # [welcome_model, *interpretation_bubbles, *tokens_container, *extra_components])
295
 
296
  demo.launch()