Update app.py
Browse files
app.py
CHANGED
|
@@ -81,4 +81,21 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 81 |
submit_button.click(fn=create_config, inputs=[model_dropdown, num_labels_input, use_cache_input], outputs=output_area)
|
| 82 |
|
| 83 |
# Launch the Gradio interface.
|
| 84 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
submit_button.click(fn=create_config, inputs=[model_dropdown, num_labels_input, use_cache_input], outputs=output_area)
|
| 82 |
|
| 83 |
# Launch the Gradio interface.
|
| 84 |
+
demo.launch()
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
import gradio as gr
|
| 88 |
+
|
| 89 |
+
def generate_grid():
|
| 90 |
+
with gr.Blocks(label="The Big Gridio", elem_class="layout", elem_id="grid-lg") as grid:
|
| 91 |
+
for row in range(12):
|
| 92 |
+
with gr.Row() as row_container:
|
| 93 |
+
for col in range(12):
|
| 94 |
+
with gr.Column() as col_container:
|
| 95 |
+
col_container.style.elem_class = f"col-{col}"
|
| 96 |
+
col_container.style.elem_id = f"col-{col}"
|
| 97 |
+
# Add any additional content or components to the column container here
|
| 98 |
+
gr.Label(f"Row: {row} | Col: {col}")
|
| 99 |
+
|
| 100 |
+
if __name__ == "__main__":
|
| 101 |
+
generate_grid()
|