Upload app.py
Browse files
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()
|