FQiao commited on
Commit
b5285f1
·
verified ·
1 Parent(s): 6a400be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -145,6 +145,7 @@ with demo:
145
  aud_pan = gr.Audio(label="Panoramic Audio", type="filepath")
146
 
147
  # Preview update
 
148
  def run_all(pan, vw, loc, mdl, dur, cpu):
149
  # generate files
150
  process_images(LOGS_DIR, OUTPUT_DIR, pan, vw, mdl, loc, dur, cpu)
 
145
  aud_pan = gr.Audio(label="Panoramic Audio", type="filepath")
146
 
147
  # Preview update
148
+ @spaces.GPU
149
  def run_all(pan, vw, loc, mdl, dur, cpu):
150
  # generate files
151
  process_images(LOGS_DIR, OUTPUT_DIR, pan, vw, mdl, loc, dur, cpu)