LPX55 commited on
Commit
2565e17
·
verified ·
1 Parent(s): c48ff81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -86,7 +86,7 @@ CLASS_NAMES = {
86
 
87
  }
88
  def load_space(space_name):
89
- return gr.load(f"spaces/{space_name}")
90
 
91
  # Load models and processors
92
  def load_models():
@@ -352,7 +352,7 @@ with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ ov
352
  outputs=[]
353
  )
354
  with gr.Tab("👑 Community Forensics Preview"):
355
- preview = gr.load("aiwithoutborders-xyz/OpenSight-Community-Forensics-Preview")
356
  preview.render() # no idea if this will work
357
  space2.render()
358
  with gr.Tab("🥇 Leaderboard"):
 
86
 
87
  }
88
  def load_space(space_name):
89
+ return gr.load(f"spaces/{space_name}", token=os.getenvs("HF_TOKEN"))
90
 
91
  # Load models and processors
92
  def load_models():
 
352
  outputs=[]
353
  )
354
  with gr.Tab("👑 Community Forensics Preview"):
355
+ preview = gr.load("aiwithoutborders-xyz/OpenSight-Community-Forensics-Preview", src="spaces")
356
  preview.render() # no idea if this will work
357
  space2.render()
358
  with gr.Tab("🥇 Leaderboard"):