prithivMLmods commited on
Commit
24e26ed
·
verified ·
1 Parent(s): 27a7577

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: