huangshiyu
commited on
Commit
•
d64c69d
1
Parent(s):
80b069f
update
Browse files- app.py +8 -12
- constants.py +1 -1
app.py
CHANGED
@@ -31,7 +31,6 @@ def add_new_eval(
|
|
31 |
model_name_textbox: str,
|
32 |
revision_name_textbox: str,
|
33 |
model_link: str,
|
34 |
-
model_size: str,
|
35 |
LLM_type: str,
|
36 |
LLM_name_textbox: str,
|
37 |
):
|
@@ -184,32 +183,29 @@ with block:
|
|
184 |
with gr.Row():
|
185 |
with gr.Column():
|
186 |
model_name_textbox = gr.Textbox(
|
187 |
-
label="Model name", placeholder="
|
188 |
)
|
189 |
revision_name_textbox = gr.Textbox(
|
190 |
-
label="Revision Model Name", placeholder="
|
191 |
)
|
192 |
|
193 |
-
|
194 |
with gr.Column():
|
195 |
LLM_type = gr.Dropdown(
|
196 |
-
choices=["Vicuna-7B", "Flan-T5-XL", "LLaMA-7B", "InternLM-7B", "Other"],
|
197 |
label="LLM type",
|
198 |
multiselect=False,
|
199 |
-
value="LLaMA-
|
200 |
interactive=True,
|
201 |
)
|
202 |
LLM_name_textbox = gr.Textbox(
|
203 |
label="LLM model (for Other)",
|
204 |
-
placeholder="LLaMA-
|
205 |
)
|
206 |
model_link = gr.Textbox(
|
207 |
-
label="Model Link", placeholder="https://
|
208 |
-
)
|
209 |
-
model_size = gr.Textbox(
|
210 |
-
label="Model size", placeholder="7B(Input content format must be 'number+B' or '-')"
|
211 |
)
|
212 |
|
|
|
213 |
with gr.Column():
|
214 |
input_file = gr.components.File(label="Click to Upload a json File", file_count="single", type='binary')
|
215 |
submit_button = gr.Button("Submit Eval")
|
@@ -222,7 +218,7 @@ with block:
|
|
222 |
model_name_textbox,
|
223 |
revision_name_textbox,
|
224 |
model_link,
|
225 |
-
|
226 |
LLM_type,
|
227 |
LLM_name_textbox,
|
228 |
],
|
|
|
31 |
model_name_textbox: str,
|
32 |
revision_name_textbox: str,
|
33 |
model_link: str,
|
|
|
34 |
LLM_type: str,
|
35 |
LLM_name_textbox: str,
|
36 |
):
|
|
|
183 |
with gr.Row():
|
184 |
with gr.Column():
|
185 |
model_name_textbox = gr.Textbox(
|
186 |
+
label="Model name", placeholder="CogVLM2-Video"
|
187 |
)
|
188 |
revision_name_textbox = gr.Textbox(
|
189 |
+
label="Revision Model Name", placeholder="CogVLM2-Video"
|
190 |
)
|
191 |
|
|
|
192 |
with gr.Column():
|
193 |
LLM_type = gr.Dropdown(
|
194 |
+
choices=["LLaMA-3-8B", "Vicuna-7B", "Flan-T5-XL", "LLaMA-7B", "InternLM-7B", "Other"],
|
195 |
label="LLM type",
|
196 |
multiselect=False,
|
197 |
+
value="LLaMA-3-8B",
|
198 |
interactive=True,
|
199 |
)
|
200 |
LLM_name_textbox = gr.Textbox(
|
201 |
label="LLM model (for Other)",
|
202 |
+
placeholder="LLaMA-3-8B"
|
203 |
)
|
204 |
model_link = gr.Textbox(
|
205 |
+
label="Model Link", placeholder="https://cogvlm2-video.github.io/"
|
|
|
|
|
|
|
206 |
)
|
207 |
|
208 |
+
|
209 |
with gr.Column():
|
210 |
input_file = gr.components.File(label="Click to Upload a json File", file_count="single", type='binary')
|
211 |
submit_button = gr.Button("Submit Eval")
|
|
|
218 |
model_name_textbox,
|
219 |
revision_name_textbox,
|
220 |
model_link,
|
221 |
+
|
222 |
LLM_type,
|
223 |
LLM_name_textbox,
|
224 |
],
|
constants.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import os
|
2 |
|
3 |
# this is .py for store constants
|
4 |
-
MODEL_INFO = ["Model", "
|
5 |
TASK_INFO = ["Overall", "ER", "EU", "KIR", "TG", "Rea", "Sum"]
|
6 |
AVG_INFO = ["Overall"]
|
7 |
|
|
|
1 |
import os
|
2 |
|
3 |
# this is .py for store constants
|
4 |
+
MODEL_INFO = ["Model", "Language Model", "Date"]
|
5 |
TASK_INFO = ["Overall", "ER", "EU", "KIR", "TG", "Rea", "Sum"]
|
6 |
AVG_INFO = ["Overall"]
|
7 |
|