mcamargo00 commited on
Commit
78bbf64
·
verified ·
1 Parent(s): 0c3715f

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -208,5 +208,12 @@ with gr.Blocks(title="Math Solution Classifier") as demo:
208
  inputs=[q_in, s_in],
209
  )
210
 
 
 
 
 
 
 
 
211
  if __name__ == "__main__":
212
  demo.launch()
 
208
  inputs=[q_in, s_in],
209
  )
210
 
211
+ import spaces
212
+
213
+ @spaces.GPU # or @spaces.CPU if you deploy on CPU
214
+
215
+ def launch_app():
216
+ return demo # the Gradio Blocks object you built
217
+
218
  if __name__ == "__main__":
219
  demo.launch()