Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -220,7 +220,7 @@ def calc_timeout_image(model_name, text, image, max_new_tokens, temperature, top
|
|
| 220 |
return 60
|
| 221 |
|
| 222 |
|
| 223 |
-
@spaces.GPU(duration=calc_timeout_image)
|
| 224 |
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):
|
| 225 |
buffer = ""
|
| 226 |
try:
|
|
|
|
| 220 |
return 60
|
| 221 |
|
| 222 |
|
| 223 |
+
@spaces.GPU(duration=calc_timeout_image, size="xlarge")
|
| 224 |
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):
|
| 225 |
buffer = ""
|
| 226 |
try:
|