Spaces:
Runtime error
Runtime error
Commit
·
525c4ec
1
Parent(s):
a6c5938
refactor
Browse files
app.py
CHANGED
@@ -292,7 +292,10 @@ def _basic_check(hub_id):
|
|
292 |
)
|
293 |
for v in to_fix.values():
|
294 |
recommendations += f"\n- {v}"
|
295 |
-
return
|
|
|
|
|
|
|
296 |
except Exception as e:
|
297 |
print(e)
|
298 |
return None
|
@@ -321,7 +324,7 @@ This app will check your model's metadata for a few common issues."""
|
|
321 |
button = gr.Button(label="Check", type="submit")
|
322 |
with gr.Row():
|
323 |
gr.Markdown("Results")
|
324 |
-
markdown = gr.
|
325 |
button.click(_basic_check, text, markdown)
|
326 |
|
327 |
demo.launch(debug=True)
|
|
|
292 |
)
|
293 |
for v in to_fix.values():
|
294 |
recommendations += f"\n- {v}"
|
295 |
+
return score
|
296 |
+
# return (
|
297 |
+
# score_summary + recommendations if recommendations else score_summary
|
298 |
+
# )
|
299 |
except Exception as e:
|
300 |
print(e)
|
301 |
return None
|
|
|
324 |
button = gr.Button(label="Check", type="submit")
|
325 |
with gr.Row():
|
326 |
gr.Markdown("Results")
|
327 |
+
markdown = gr.Number()
|
328 |
button.click(_basic_check, text, markdown)
|
329 |
|
330 |
demo.launch(debug=True)
|