Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -390,6 +390,8 @@ def replay_diffusion(frames, replay_speed):
|
|
| 390 |
|
| 391 |
# Define the Gradio UI
|
| 392 |
css = '''.gradio-container > .fillable {max-width: 720px !important}
|
|
|
|
|
|
|
| 393 |
'''
|
| 394 |
with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
| 395 |
gr.Markdown(
|
|
@@ -399,7 +401,16 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
| 399 |
[GitHub](https://github.com/ash80/diffusion-gpt), [Colab](https://colab.research.google.com/github/ash80/diffusion-gpt/blob/master/The_Annotated_Discrete_Diffusion_Models.ipynb)
|
| 400 |
"""
|
| 401 |
)
|
|
|
|
|
|
|
| 402 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
with gr.Row():
|
| 404 |
steps_slider = gr.Slider(
|
| 405 |
minimum=64,
|
|
@@ -418,16 +429,6 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
| 418 |
info="Controls the speed of the animation after generation.",
|
| 419 |
visible=False
|
| 420 |
)
|
| 421 |
-
|
| 422 |
-
generate_button = gr.Button("Generate", variant="primary")
|
| 423 |
-
|
| 424 |
-
output_textbox = gr.Textbox(
|
| 425 |
-
label="Generated Text",
|
| 426 |
-
lines=15,
|
| 427 |
-
interactive=False,
|
| 428 |
-
show_copy_button=True,
|
| 429 |
-
placeholder="Generation will appear here..."
|
| 430 |
-
)
|
| 431 |
|
| 432 |
diffusion_frames_state = gr.State([])
|
| 433 |
|
|
|
|
| 390 |
|
| 391 |
# Define the Gradio UI
|
| 392 |
css = '''.gradio-container > .fillable {max-width: 720px !important}
|
| 393 |
+
h3{margin-top: 1em}
|
| 394 |
+
p{margin-top: 0}
|
| 395 |
'''
|
| 396 |
with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
| 397 |
gr.Markdown(
|
|
|
|
| 401 |
[GitHub](https://github.com/ash80/diffusion-gpt), [Colab](https://colab.research.google.com/github/ash80/diffusion-gpt/blob/master/The_Annotated_Discrete_Diffusion_Models.ipynb)
|
| 402 |
"""
|
| 403 |
)
|
| 404 |
+
|
| 405 |
+
generate_button = gr.Button("Generate", variant="primary")
|
| 406 |
|
| 407 |
+
output_textbox = gr.Textbox(
|
| 408 |
+
label="Generated Text",
|
| 409 |
+
lines=15,
|
| 410 |
+
interactive=False,
|
| 411 |
+
show_copy_button=True,
|
| 412 |
+
placeholder="Generation will appear here..."
|
| 413 |
+
)
|
| 414 |
with gr.Row():
|
| 415 |
steps_slider = gr.Slider(
|
| 416 |
minimum=64,
|
|
|
|
| 429 |
info="Controls the speed of the animation after generation.",
|
| 430 |
visible=False
|
| 431 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 432 |
|
| 433 |
diffusion_frames_state = gr.State([])
|
| 434 |
|