Update app.py
Browse files
app.py
CHANGED
@@ -115,23 +115,16 @@ def infer(secret_token, image, prompt, steps=50, cfg_scale=7.5, eta=1.0, fs=3, s
|
|
115 |
|
116 |
|
117 |
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
<a href='https://github.com/hyliu'>Hanyuan Liu</a>, <a href='https://xinntao.github.io/'>Xintao Wang</a>,\
|
127 |
-
<a href='https://www.cse.cuhk.edu.hk/~ttwong/myself.html'>Tien-Tsin Wong</a>,\
|
128 |
-
<a href='https://scholar.google.com/citations?user=4oXBp9UAAAAJ&hl=zh-CN'>Ying Shan</a>\
|
129 |
-
</h2> \
|
130 |
-
<a style='font-size:18px;color: #000000' href='https://arxiv.org/abs/2310.12190'> [ArXiv] </a>\
|
131 |
-
<a style='font-size:18px;color: #000000' href='https://doubiiu.github.io/projects/DynamiCrafter/'> [Project Page] </a> \
|
132 |
-
<a style='font-size:18px;color: #000000' href='https://github.com/Doubiiu/DynamiCrafter'> [Github] </a> </div>")
|
133 |
|
134 |
-
with gr.Tab(
|
135 |
with gr.Column():
|
136 |
with gr.Row():
|
137 |
secret_token = gr.Text(label='Secret Token', max_lines=1)
|
@@ -152,4 +145,4 @@ with gr.Blocks(analytics_enabled=False, css=css) as dynamicrafter_iface:
|
|
152 |
fn = infer
|
153 |
)
|
154 |
|
155 |
-
|
|
|
115 |
|
116 |
|
117 |
|
118 |
+
with gr.Blocks() as app:
|
119 |
+
gr.HTML("""
|
120 |
+
<div style="z-index: 100; position: fixed; top: 0px; right: 0px; left: 0px; bottom: 0px; width: 100%; height: 100%; background: white; display: flex; align-items: center; justify-content: center; color: black;">
|
121 |
+
<div style="text-align: center; color: black;">
|
122 |
+
<p style="color: black;">This space is a REST API to programmatically generate MP4 videos.</p>
|
123 |
+
<p style="color: black;">Interested in using it? Look no further than the <a href="https://huggingface.co/spaces/multimodalart/stable-video-diffusion" target="_blank">original space</a>!</p>
|
124 |
+
</div>
|
125 |
+
</div>""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
|
127 |
+
with gr.Tab():
|
128 |
with gr.Column():
|
129 |
with gr.Row():
|
130 |
secret_token = gr.Text(label='Secret Token', max_lines=1)
|
|
|
145 |
fn = infer
|
146 |
)
|
147 |
|
148 |
+
app.queue(max_size=12).launch(show_api=True)
|