yuntian-deng commited on
Commit
774ff26
·
verified ·
1 Parent(s): 6166e35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -66,7 +66,7 @@ with gr.Blocks() as demo:
66
  gr.Markdown(title)
67
  gr.Markdown(authors)
68
  gr.Markdown(info)
69
- gr.Markdown(notice)
70
  with gr.Row():
71
  with gr.Column(scale=2):
72
  textbox = gr.Textbox(label=r'Type LaTeX formula below and click "Generate"', lines=1, max_lines=1, placeholder='Type LaTeX formula here and click "Generate"', value=r'\sum_{t=1}^T\E_{y_t \sim {\tilde P(y_t| y_0)}} \left\| \frac{y_t - \sqrt{\bar{\alpha}_t}y_0}{\sqrt{1-\bar{\alpha}_t}} - \epsilon_\theta(y_t, t)\right\|^2.')
@@ -109,4 +109,4 @@ with gr.Blocks() as demo:
109
  except Exception as e:
110
  yield 1000, 255*np.ones((64, 320, 3)), submit_btn.update(visible=True)
111
  submit_btn.click(fn=infer, inputs=inputs, outputs=outputs)
112
- demo.queue(concurrency_count=1, max_size=20).launch(enable_queue=True)
 
66
  gr.Markdown(title)
67
  gr.Markdown(authors)
68
  gr.Markdown(info)
69
+ #gr.Markdown(notice)
70
  with gr.Row():
71
  with gr.Column(scale=2):
72
  textbox = gr.Textbox(label=r'Type LaTeX formula below and click "Generate"', lines=1, max_lines=1, placeholder='Type LaTeX formula here and click "Generate"', value=r'\sum_{t=1}^T\E_{y_t \sim {\tilde P(y_t| y_0)}} \left\| \frac{y_t - \sqrt{\bar{\alpha}_t}y_0}{\sqrt{1-\bar{\alpha}_t}} - \epsilon_\theta(y_t, t)\right\|^2.')
 
109
  except Exception as e:
110
  yield 1000, 255*np.ones((64, 320, 3)), submit_btn.update(visible=True)
111
  submit_btn.click(fn=infer, inputs=inputs, outputs=outputs)
112
+ demo.queue(concurrency_count=3, max_size=30).launch(enable_queue=True)