Seraph19 commited on
Commit
5127036
1 Parent(s): 8c88cb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -17
app.py CHANGED
@@ -137,23 +137,28 @@ with demo:
137
  gr.Markdown("# ✉️✨ Submit your model here!", elem_classes="markdown-text")
138
  with gr.Row():
139
  with gr.Column():
140
- revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
141
- model_type = gr.Dropdown(
142
- choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
143
- label="Model type",
144
- multiselect=False,
145
- value=None,
146
- interactive=True,
147
- )
148
- with gr.Column():
149
- precision = gr.Dropdown(
150
- choices=[i.value.name for i in Precisi
151
- on if i != Precision.Unknown],
152
- label="Precision",
153
- multiselect=False,
154
- value="float16",
155
- interactive=True,
156
- )
 
 
 
 
 
157
  weight_type = gr.Dropdown(
158
  choices=[i.value.name for i in WeightType],
159
  label="Weights type",
 
137
  gr.Markdown("# ✉️✨ Submit your model here!", elem_classes="markdown-text")
138
  with gr.Row():
139
  with gr.Column():
140
+ # ... (Other code)
141
+
142
+ revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
143
+ model_type = gr.Dropdown(
144
+ choices=[t.to_str(" : ") for t in ModelType if t.value != ModelType.Unknown.value],
145
+ label="Model type",
146
+ multiselect=False,
147
+ value=None,
148
+ interactive=True,
149
+ )
150
+ with gr.Column():
151
+ precision = gr.Dropdown(
152
+ choices=[i.value.name for i in Precision if i.value != Precision.Unknown.value],
153
+ label="Precision",
154
+ multiselect=False,
155
+ value="float16",
156
+ interactive=True,
157
+ )
158
+ # ... (Other components)
159
+
160
+ # ... (Rest of your code)
161
+ )
162
  weight_type = gr.Dropdown(
163
  choices=[i.value.name for i in WeightType],
164
  label="Weights type",