lzghades commited on
Commit
74a7b7c
1 Parent(s): 18d1a6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -66,6 +66,7 @@ def create_panorama(prompt, negative_prompt):
66
  time.sleep(1)
67
  except Exception as e:
68
  # LOGGER.error(e)
 
69
  raise gr.Error('AI老师罢工了,请稍后重试')
70
 
71
 
@@ -130,6 +131,7 @@ def upload(token, file_id, file_url):
130
  return resp.json()['data']['tid']
131
  except Exception as e:
132
  # LOGGER.error(e)
 
133
  raise gr.Error('AI老师罢工了,请稍后重试')
134
 
135
 
@@ -170,4 +172,4 @@ with gr.Blocks(css=CSS) as demo:
170
  btn = gr.Button('运行')
171
  btn.click(fn=main, inputs=[login_id, password, prompt, negative_prompt, session], outputs=out, show_progress=True)
172
 
173
- demo.queue(concurrency_count=8).launch()
 
66
  time.sleep(1)
67
  except Exception as e:
68
  # LOGGER.error(e)
69
+ print(e)
70
  raise gr.Error('AI老师罢工了,请稍后重试')
71
 
72
 
 
131
  return resp.json()['data']['tid']
132
  except Exception as e:
133
  # LOGGER.error(e)
134
+ print(e)
135
  raise gr.Error('AI老师罢工了,请稍后重试')
136
 
137
 
 
172
  btn = gr.Button('运行')
173
  btn.click(fn=main, inputs=[login_id, password, prompt, negative_prompt, session], outputs=out, show_progress=True)
174
 
175
+ demo.queue(concurrency_count=3).launch()