LanguageBind commited on
Commit
efec919
·
verified ·
1 Parent(s): 358828b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -98,7 +98,6 @@ def img2b64(image_path):
98
  data_uri = f"data:image/jpeg;base64,{b64}"
99
  return data_uri
100
 
101
- @spaces.GPU
102
  def initialize_models(args):
103
  os.makedirs("tmp", exist_ok=True)
104
  # Paths
@@ -209,7 +208,7 @@ def process_large_image(raw_img):
209
  else:
210
  return raw_img
211
 
212
- @spaces.GPU
213
  def chat_step(image1, image2, text, height, width, steps, guidance,
214
  ocr_enhancer, joint_with_t5, enhance_generation, enhance_understanding,
215
  seed, num_imgs, history_state, progress=gr.Progress()):
 
98
  data_uri = f"data:image/jpeg;base64,{b64}"
99
  return data_uri
100
 
 
101
  def initialize_models(args):
102
  os.makedirs("tmp", exist_ok=True)
103
  # Paths
 
208
  else:
209
  return raw_img
210
 
211
+ @spaces.GPU(duration=200)
212
  def chat_step(image1, image2, text, height, width, steps, guidance,
213
  ocr_enhancer, joint_with_t5, enhance_generation, enhance_understanding,
214
  seed, num_imgs, history_state, progress=gr.Progress()):