Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,7 @@ def add_model_to_list(new_model):
|
|
| 12 |
model_list.append(new_model) # Add the new model to the list.
|
| 13 |
return model_list
|
| 14 |
|
|
|
|
| 15 |
# Function to create a configuration for the selected model.
|
| 16 |
def create_config(model_name, num_labels, use_cache):
|
| 17 |
# If the selected model is not in the list, add it (this is a safety check).
|
|
@@ -46,4 +47,4 @@ with gr.Blocks() as demo:
|
|
| 46 |
submit_button.click(fn=create_config, inputs=[model_dropdown, num_labels_input, use_cache_input], outputs=output_area)
|
| 47 |
|
| 48 |
# Launch the Gradio interface.
|
| 49 |
-
demo.launch()
|
|
|
|
| 12 |
model_list.append(new_model) # Add the new model to the list.
|
| 13 |
return model_list
|
| 14 |
|
| 15 |
+
|
| 16 |
# Function to create a configuration for the selected model.
|
| 17 |
def create_config(model_name, num_labels, use_cache):
|
| 18 |
# If the selected model is not in the list, add it (this is a safety check).
|
|
|
|
| 47 |
submit_button.click(fn=create_config, inputs=[model_dropdown, num_labels_input, use_cache_input], outputs=output_area)
|
| 48 |
|
| 49 |
# Launch the Gradio interface.
|
| 50 |
+
demo.launch()
|