MattGPT commited on
Commit
ee279c9
1 Parent(s): dea5ddd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -18
app.py CHANGED
@@ -36,7 +36,21 @@ css = """
36
 
37
  # Import necessary libraries
38
  import gradio as gr # Gradio is used to create web interfaces for Python scripts.
39
- from transformers import AutoConfig # AutoConfig is from the Hugging Face Transformers library, used to create configuration for various models.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
  # A list of model names to start with. These are names of popular models from the Hugging Face library.
42
  model_list = ["bert-base-uncased", "gpt2", "distilbert-base-uncased"]
@@ -118,20 +132,3 @@ with gr.Blocks(css=custom_css) as demo:
118
 
119
  # Launch the Gradio interface.
120
  demo.launch()
121
-
122
-
123
- import gradio as gr
124
-
125
- def generate_grid():
126
- with gr.Blocks(css=css, label="The Big Gridio", elem_class="layout", elem_id="grid-lg") as grid:
127
- for row in range(12):
128
- with gr.Row() as row_container:
129
- for col in range(12):
130
- with gr.Column() as col_container:
131
- col_container.style.elem_class = f"col-{col}"
132
- col_container.style.elem_id = f"col-{col}"
133
- # Add any additional content or components to the column container here
134
- gr.Label(f"Row: {row} | Col: {col}")
135
-
136
- if __name__ == "__main__":
137
- generate_grid()
 
36
 
37
  # Import necessary libraries
38
  import gradio as gr # Gradio is used to create web interfaces for Python scripts.
39
+ from transformers import AutoConfig # AutoConfig is from the Hugging Face Transformers library, used to create configuration for various models.import gradio as gr
40
+
41
+ def generate_grid():
42
+ with gr.Blocks(css=css, label="The Big Gridio", elem_class="layout", elem_id="grid-lg") as grid:
43
+ for row in range(12):
44
+ with gr.Row() as row_container:
45
+ for col in range(12):
46
+ with gr.Column() as col_container:
47
+ col_container.style.elem_class = f"col-{col}"
48
+ col_container.style.elem_id = f"col-{col}"
49
+ # Add any additional content or components to the column container here
50
+ gr.Label(f"Row: {row} | Col: {col}")
51
+
52
+ generate_grid()
53
+
54
 
55
  # A list of model names to start with. These are names of popular models from the Hugging Face library.
56
  model_list = ["bert-base-uncased", "gpt2", "distilbert-base-uncased"]
 
132
 
133
  # Launch the Gradio interface.
134
  demo.launch()