ajaygovind commited on
Commit
f898d1e
·
1 Parent(s): 068ec50

make Space ZeroGPU compatible

Browse files
Files changed (2) hide show
  1. app.py +2 -0
  2. requirements.txt +1 -0
app.py CHANGED
@@ -1,5 +1,7 @@
1
  import gradio as gr
 
2
 
 
3
  def analyze(model_name):
4
  return f"""
5
  OpenModelLab Demo
 
1
  import gradio as gr
2
+ import spaces
3
 
4
+ @spaces.GPU
5
  def analyze(model_name):
6
  return f"""
7
  OpenModelLab Demo
requirements.txt CHANGED
@@ -1 +1,2 @@
1
  gradio
 
 
1
  gradio
2
+ spaces