Spaces:
Running
on
T4
Running
on
T4
yuntian-deng
commited on
Update app.py
Browse files
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=
|
|
|
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)
|