Update app.py
Browse files
app.py
CHANGED
@@ -133,36 +133,33 @@ with demo:
|
|
133 |
datatype=EVAL_TYPES,
|
134 |
row_count=5,
|
135 |
)
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
)
|
164 |
-
base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
165 |
-
model_name_textbox = gr.Textbox(label="Model name")
|
166 |
|
167 |
submit_button = gr.Button("Submit Eval")
|
168 |
submission_result = gr.Markdown()
|
|
|
133 |
datatype=EVAL_TYPES,
|
134 |
row_count=5,
|
135 |
)
|
136 |
+
with gr.Row():
|
137 |
+
with gr.Column():
|
138 |
+
revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
|
139 |
+
model_type = gr.Dropdown(
|
140 |
+
choices=[t.to_str(" : ") for t in ModelType if t.value != ModelType.Unknown.value],
|
141 |
+
label="Model type",
|
142 |
+
multiselect=False,
|
143 |
+
value=None,
|
144 |
+
interactive=True,
|
145 |
+
)
|
146 |
+
with gr.Column():
|
147 |
+
precision = gr.Dropdown(
|
148 |
+
choices=[i.value.name for i in Precision if i.value != Precision.Unknown.value],
|
149 |
+
label="Precision",
|
150 |
+
multiselect=False,
|
151 |
+
value="float16",
|
152 |
+
interactive=True,
|
153 |
+
)
|
154 |
+
weight_type = gr.Dropdown(
|
155 |
+
choices=[i.value.name for i in WeightType],
|
156 |
+
label="Weights type",
|
157 |
+
multiselect=False,
|
158 |
+
value="Original",
|
159 |
+
interactive=True,
|
160 |
+
)
|
161 |
+
base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
162 |
+
model_name_textbox = gr.Textbox(label="Model name")
|
|
|
|
|
|
|
163 |
|
164 |
submit_button = gr.Button("Submit Eval")
|
165 |
submission_result = gr.Markdown()
|