Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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,
|