Spaces:
Running
on
T4
Running
on
T4
yuntian-deng
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,8 @@ print (API_KEY)
|
|
23 |
title = "<h1><center>Markup-to-Image Diffusion Models with Scheduled Sampling</center></h1>"
|
24 |
authors = "<center>Yuntian Deng, Noriyuki Kojima, Alexander M. Rush</center>"
|
25 |
info = '<center><a href="https://openreview.net/pdf?id=81VJDmOE2ol">Paper</a> <a href="https://github.com/da03/markup2im">Code</a></center>'
|
26 |
-
notice = "<p><center><strong>Notice:</strong> Due to resource constraints, we've transitioned from GPU to CPU processing for this demo, which results in significantly longer inference times. We appreciate your understanding.</center></p>"
|
|
|
27 |
|
28 |
|
29 |
# setup
|
@@ -66,7 +67,7 @@ with gr.Blocks() as demo:
|
|
66 |
gr.Markdown(title)
|
67 |
gr.Markdown(authors)
|
68 |
gr.Markdown(info)
|
69 |
-
|
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.')
|
|
|
23 |
title = "<h1><center>Markup-to-Image Diffusion Models with Scheduled Sampling</center></h1>"
|
24 |
authors = "<center>Yuntian Deng, Noriyuki Kojima, Alexander M. Rush</center>"
|
25 |
info = '<center><a href="https://openreview.net/pdf?id=81VJDmOE2ol">Paper</a> <a href="https://github.com/da03/markup2im">Code</a></center>'
|
26 |
+
#notice = "<p><center><strong>Notice:</strong> Due to resource constraints, we've transitioned from GPU to CPU processing for this demo, which results in significantly longer inference times. We appreciate your understanding.</center></p>"
|
27 |
+
notice = "<p><center><strong>Notice:</strong> This demo is powered by GPU resources generously supported by the Hugging Face Community Grant. Thank you, Hugging Face!</center></p>"
|
28 |
|
29 |
|
30 |
# setup
|
|
|
67 |
gr.Markdown(title)
|
68 |
gr.Markdown(authors)
|
69 |
gr.Markdown(info)
|
70 |
+
gr.Markdown(notice)
|
71 |
with gr.Row():
|
72 |
with gr.Column(scale=2):
|
73 |
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.')
|