JunlinHan commited on
Commit
13ec6ce
1 Parent(s): 459c899

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  # final one
2
  import torch
 
3
  import gradio as gr
4
  import os
5
  import numpy as np
@@ -271,6 +272,7 @@ with gr.Blocks() as demo:
271
  img_input.change(clear_model_viewer, inputs=None, outputs=model_output)
272
 
273
  # then, generate the mesh and video
 
274
  generate_mesh_button.click(step_1_generate_obj, inputs=img_input, outputs=[obj_file_output, model_output])
275
  generate_video_button.click(step_2_generate_video, inputs=img_input, outputs=video_file_output)
276
 
 
1
  # final one
2
  import torch
3
+ import spaces
4
  import gradio as gr
5
  import os
6
  import numpy as np
 
272
  img_input.change(clear_model_viewer, inputs=None, outputs=model_output)
273
 
274
  # then, generate the mesh and video
275
+ @spaces.GPU
276
  generate_mesh_button.click(step_1_generate_obj, inputs=img_input, outputs=[obj_file_output, model_output])
277
  generate_video_button.click(step_2_generate_video, inputs=img_input, outputs=video_file_output)
278