davanstrien HF Staff commited on
Commit
a6c5938
·
1 Parent(s): 9f4bace
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -309,5 +309,22 @@ def basic_check(hub_id):
309
  # print("calculating metadata scores...")
310
  # thread_map(basic_check, model_ids)
311
 
 
 
 
 
312
 
313
- gr.Interface(fn=basic_check, inputs="text", outputs="markdown").launch(debug=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
  # print("calculating metadata scores...")
310
  # thread_map(basic_check, model_ids)
311
 
312
+ with gr.Blocks() as demo:
313
+ gr.Markdown(
314
+ """
315
+ # Model Metadata Checker
316
 
317
+ This app will check your model's metadata for a few common issues."""
318
+ )
319
+ with gr.Row():
320
+ text = gr.Text(label="Model ID")
321
+ button = gr.Button(label="Check", type="submit")
322
+ with gr.Row():
323
+ gr.Markdown("Results")
324
+ markdown = gr.Markdown(name="markdown")
325
+ button.click(_basic_check, text, markdown)
326
+
327
+ demo.launch(debug=True)
328
+
329
+
330
+ # gr.Interface(fn=basic_check, inputs="text", outputs="markdown").launch(debug=True)