multimodalart HF Staff commited on
Commit
f946f55
·
verified ·
1 Parent(s): 7f21e40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import torch
3
  import torch.nn.functional as F
@@ -214,6 +215,7 @@ print("--- All models loaded successfully! ---")
214
 
215
 
216
  # --- Main Inference Function for Gradio ---
 
217
  def run_diptych_prompting(
218
  input_image: Image.Image,
219
  subject_name: str,
 
1
+ import spaces
2
  import gradio as gr
3
  import torch
4
  import torch.nn.functional as F
 
215
 
216
 
217
  # --- Main Inference Function for Gradio ---
218
+ @spaces.GPU(duration=70)
219
  def run_diptych_prompting(
220
  input_image: Image.Image,
221
  subject_name: str,