Muhammad Taqi Raza commited on
Commit
5691df0
Β·
1 Parent(s): 80552a7
Files changed (1) hide show
  1. gradio_app.py +6 -1
gradio_app.py CHANGED
@@ -167,6 +167,12 @@ def inference(
167
  demo = gr.Blocks()
168
 
169
  with demo:
 
 
 
 
 
 
170
  gr.Markdown("## 🎬 EPiC: Cinematic Camera Control")
171
 
172
  with gr.Tabs():
@@ -262,7 +268,6 @@ with demo:
262
  outputs=[step2_video, step2_logs]
263
  )
264
  if __name__ == "__main__":
265
- download_models()
266
  try:
267
  warmup() # will quietly trigger ZeroGPU once
268
  except Exception as e:
 
167
  demo = gr.Blocks()
168
 
169
  with demo:
170
+
171
+ with gr.Row():
172
+ model_download_output = gr.Textbox(label="πŸ”„ Model Download Log", lines=2)
173
+ model_download_button = gr.Button("πŸ“¦ Download Pretrained Models")
174
+ model_download_button.click(fn=download_models, outputs=model_download_output)
175
+
176
  gr.Markdown("## 🎬 EPiC: Cinematic Camera Control")
177
 
178
  with gr.Tabs():
 
268
  outputs=[step2_video, step2_logs]
269
  )
270
  if __name__ == "__main__":
 
271
  try:
272
  warmup() # will quietly trigger ZeroGPU once
273
  except Exception as e: