Skip to content

Commit

Permalink
Refine graio
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 committed Nov 24, 2024
1 parent ee5b369 commit 25754d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/app_sana.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import random
import time
import uuid
import socket
from datetime import datetime

import gradio as gr
Expand Down Expand Up @@ -308,7 +309,7 @@ def generate(
<p><span style="font-size: 36px; font-weight: bold;">Sana-{model_size}B</span><span style="font-size: 20px; font-weight: bold;">{args.image_size}px</span></p>
<p style="font-size: 16px; font-weight: bold;">Sana: Efficient High-Resolution Image Synthesis with Linear Diffusion Transformer</p>
<p><span style="font-size: 16px;"><a href="https://arxiv.org/abs/2410.10629">[Paper]</a></span> <span style="font-size: 16px;"><a href="https://github.com/NVlabs/Sana">[Github(coming soon)]</a></span> <span style="font-size: 16px;"><a href="https://nvlabs.github.io/Sana">[Project]</a></span</p>
<p style="font-size: 16px; font-weight: bold;">Powered by <a href="https://hanlab.mit.edu/projects/dc-ae">DC-AE</a> with 32x latent space</p>, running on A6000 node.
<p style="font-size: 16px; font-weight: bold;">Powered by <a href="https://hanlab.mit.edu/projects/dc-ae">DC-AE</a> with 32x latent space, </p>running on node {socket.gethostname()}.
<p style="font-size: 16px; font-weight: bold;">Unsafe word will give you a 'Red Heart' in the image instead.</p>
"""
if model_size == "0.6":
Expand Down Expand Up @@ -336,7 +337,7 @@ def generate(
"""
with gr.Blocks(css=css) as demo:
gr.Markdown(title)
gr.Markdown(DESCRIPTION)
gr.HTML(DESCRIPTION)
gr.DuplicateButton(
value="Duplicate Space for private use",
elem_id="duplicate-button",
Expand Down Expand Up @@ -485,4 +486,4 @@ def generate(
)

if __name__ == "__main__":
demo.queue(max_size=20).launch(server_name="0.0.0.0", server_port=DEMO_PORT, debug=True, share=True)
demo.queue(max_size=20).launch(server_name="0.0.0.0", server_port=DEMO_PORT, debug=False, share=False)

0 comments on commit 25754d8

Please sign in to comment.