Seraph19 commited on
Commit
2fc3b2c
1 Parent(s): 33b9eda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -30
app.py CHANGED
@@ -133,36 +133,33 @@ with demo:
133
  datatype=EVAL_TYPES,
134
  row_count=5,
135
  )
136
- with gr.Row():
137
- gr.Markdown("# ✉️✨ Submit your model here!", elem_classes="markdown-text")
138
- with gr.Row():
139
- # ... (Your existing code)
140
-
141
- with gr.Column():
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
- precision = gr.Dropdown(
151
- choices=[i.value.name for i in Precision if i.value != Precision.Unknown.value],
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",
160
- multiselect=False,
161
- value="Original",
162
- interactive=True,
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()