Update app.py
Browse files
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 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
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",
|