Spaces:
Running
Running
Formatting, importing json.
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import os
|
|
|
|
| 2 |
from datetime import datetime, timezone
|
| 3 |
from dataclasses import dataclass
|
| 4 |
|
|
@@ -205,19 +206,20 @@ with gr.Blocks() as demo:
|
|
| 205 |
)
|
| 206 |
base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
| 207 |
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
|
|
|
| 222 |
|
| 223 |
demo.launch()
|
|
|
|
| 1 |
import os
|
| 2 |
+
import json
|
| 3 |
from datetime import datetime, timezone
|
| 4 |
from dataclasses import dataclass
|
| 5 |
|
|
|
|
| 206 |
)
|
| 207 |
base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
| 208 |
|
| 209 |
+
with gr.Row():
|
| 210 |
+
submit_button = gr.Button("Run Analysis")
|
| 211 |
+
submission_result = gr.Markdown()
|
| 212 |
+
submit_button.click(
|
| 213 |
+
fn=add_new_eval,
|
| 214 |
+
inputs=[
|
| 215 |
+
model_name_textbox,
|
| 216 |
+
base_model_name_textbox,
|
| 217 |
+
revision_name_textbox,
|
| 218 |
+
precision,
|
| 219 |
+
weight_type,
|
| 220 |
+
model_type,
|
| 221 |
+
],
|
| 222 |
+
outputs=submission_result,
|
| 223 |
+
)
|
| 224 |
|
| 225 |
demo.launch()
|