haohsiang commited on
Commit
18cafa6
Β·
verified Β·
1 Parent(s): c01e671

update GPU duration = 30

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -107,7 +107,7 @@ def translate_to_english(text):
107
 
108
  return chat_reply.choices[0].message.content
109
 
110
- @spaces.GPU(duration=120)
111
  def generate_images(history, conversation_times, last_genimg_times, generated_images):
112
  if generated_images is not None and last_genimg_times == conversation_times:
113
  return conversation_times, last_genimg_times, *generated_images # ε¦‚ζžœεœ–η‰‡ε·²η”ŸζˆοΌŒη›΄ζŽ₯θΏ”ε›ž
 
107
 
108
  return chat_reply.choices[0].message.content
109
 
110
+ @spaces.GPU(duration=30)
111
  def generate_images(history, conversation_times, last_genimg_times, generated_images):
112
  if generated_images is not None and last_genimg_times == conversation_times:
113
  return conversation_times, last_genimg_times, *generated_images # ε¦‚ζžœεœ–η‰‡ε·²η”ŸζˆοΌŒη›΄ζŽ₯θΏ”ε›ž