Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -197,7 +197,7 @@ def calc_timeout_generic(*args, **kwargs):
|
|
| 197 |
return 60
|
| 198 |
|
| 199 |
|
| 200 |
-
@spaces.GPU(duration=calc_timeout_generic)
|
| 201 |
def generate_image(model_name: str, text: str, image: Image.Image,
|
| 202 |
max_new_tokens: int = 1024, temperature: float = 0.6,
|
| 203 |
top_p: float = 0.9, top_k: int = 50,
|
|
|
|
| 197 |
return 60
|
| 198 |
|
| 199 |
|
| 200 |
+
@spaces.GPU(duration=calc_timeout_generic, size="xlarge")
|
| 201 |
def generate_image(model_name: str, text: str, image: Image.Image,
|
| 202 |
max_new_tokens: int = 1024, temperature: float = 0.6,
|
| 203 |
top_p: float = 0.9, top_k: int = 50,
|