Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -180,7 +180,7 @@ def calc_timeout_generic(*args, **kwargs):
|
|
| 180 |
return 60
|
| 181 |
|
| 182 |
|
| 183 |
-
@spaces.GPU(duration=calc_timeout_generic)
|
| 184 |
def generate_image(model_name, text, image, max_new_tokens=1024, temperature=0.6, top_p=0.9, top_k=50, repetition_penalty=1.2, gpu_timeout=60):
|
| 185 |
try:
|
| 186 |
if not model_name or model_name not in MODEL_MAP:
|
|
|
|
| 180 |
return 60
|
| 181 |
|
| 182 |
|
| 183 |
+
@spaces.GPU(duration=calc_timeout_generic, size="xlarge")
|
| 184 |
def generate_image(model_name, text, image, max_new_tokens=1024, temperature=0.6, top_p=0.9, top_k=50, repetition_penalty=1.2, gpu_timeout=60):
|
| 185 |
try:
|
| 186 |
if not model_name or model_name not in MODEL_MAP:
|