Update app.py
Browse files
app.py
CHANGED
|
@@ -225,7 +225,7 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
|
|
| 225 |
|
| 226 |
with gr.Group():
|
| 227 |
model_chooser = gr.Radio(label='Choose Your Model', choices=list(model_info.keys()), value=model_name)
|
| 228 |
-
load_on_gpu = gr.Checkbox(label='Load on GPU', value=True)
|
| 229 |
welcome_model = gr.Markdown(welcome_message.format(model_name=model_name))
|
| 230 |
with gr.Blocks() as demo_main:
|
| 231 |
gr.Markdown('## The Prompt to Analyze')
|
|
@@ -270,7 +270,7 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
|
|
| 270 |
with gr.Row():
|
| 271 |
for btn in tokens_container:
|
| 272 |
btn.render()
|
| 273 |
-
use_gpu = gr.Checkbox(label='Use GPU', value=True)
|
| 274 |
|
| 275 |
progress_dummy = gr.Markdown('', elem_id='progress_dummy')
|
| 276 |
interpretation_bubbles = [gr.Textbox('', container=False, visible=False) for i in range(MAX_NUM_LAYERS)]
|
|
|
|
| 225 |
|
| 226 |
with gr.Group():
|
| 227 |
model_chooser = gr.Radio(label='Choose Your Model', choices=list(model_info.keys()), value=model_name)
|
| 228 |
+
load_on_gpu = gr.Checkbox(label='Load on GPU', visible=False, value=True)
|
| 229 |
welcome_model = gr.Markdown(welcome_message.format(model_name=model_name))
|
| 230 |
with gr.Blocks() as demo_main:
|
| 231 |
gr.Markdown('## The Prompt to Analyze')
|
|
|
|
| 270 |
with gr.Row():
|
| 271 |
for btn in tokens_container:
|
| 272 |
btn.render()
|
| 273 |
+
use_gpu = gr.Checkbox(label='Use GPU', visible=True, value=True)
|
| 274 |
|
| 275 |
progress_dummy = gr.Markdown('', elem_id='progress_dummy')
|
| 276 |
interpretation_bubbles = [gr.Textbox('', container=False, visible=False) for i in range(MAX_NUM_LAYERS)]
|