measmonysuon commited on
Commit
a394368
1 Parent(s): df62e55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -163,6 +163,7 @@ def gradio_interface(prompt, resolution_key, user_chat_id):
163
  return None, "The image file is not available. Please try again later."
164
  return None, "There was an error processing your photo. Please try again later."
165
  '''
 
166
  def gradio_interface(prompt, resolution_key, user_chat_id):
167
  if not user_chat_id.strip():
168
  return None, "User Chat ID cannot be blank. Please provide a valid User Chat ID or register with @supportBot to get UID."
 
163
  return None, "The image file is not available. Please try again later."
164
  return None, "There was an error processing your photo. Please try again later."
165
  '''
166
+ @spaces.GPU(enable_queue=True)
167
  def gradio_interface(prompt, resolution_key, user_chat_id):
168
  if not user_chat_id.strip():
169
  return None, "User Chat ID cannot be blank. Please provide a valid User Chat ID or register with @supportBot to get UID."