Omnibus commited on
Commit
f1722bf
1 Parent(s): 8db1ad2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import gradio as gr
 
2
  from huggingface_hub import HfApi, ModelFilter, list_models
3
  api = HfApi()
4
  def model_explorer():
@@ -12,4 +13,14 @@ def model_explorer():
12
  print(mod.downloads)
13
  print(mod.likes)
14
  print(mod.pipeline_tag)
15
- return out
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
+ import json
3
  from huggingface_hub import HfApi, ModelFilter, list_models
4
  api = HfApi()
5
  def model_explorer():
 
13
  print(mod.downloads)
14
  print(mod.likes)
15
  print(mod.pipeline_tag)
16
+ return out
17
+
18
+ def tasks_json():
19
+
20
+ with open("tasks.json", "r") as read_file:
21
+ print("Read JSON file")
22
+ tasks = json.load(read_file)
23
+
24
+ print("Before Pretty Printing JSON Data")
25
+ print(tasks)
26
+ tasks_json()