Spaces:
Running
on
Zero
Running
on
Zero
MohamedRashad
commited on
Commit
·
aaa0ff6
1
Parent(s):
bc56be3
Enhance Gradio interface with detailed instructions and a custom HTML header for the Infinity Image Generator
Browse files
app.py
CHANGED
@@ -502,9 +502,25 @@ def generate_image(prompt, cfg, tau, h_div_w, seed):
|
|
502 |
return image
|
503 |
|
504 |
|
505 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
506 |
with gr.Blocks() as demo:
|
507 |
-
gr.
|
|
|
508 |
|
509 |
with gr.Row():
|
510 |
with gr.Column():
|
|
|
502 |
return image
|
503 |
|
504 |
|
505 |
+
markdown_description = """### Instructions:
|
506 |
+
|
507 |
+
1. Enter a prompt in the text box below.
|
508 |
+
2. Adjust the CFG (Classifier-Free Guidance) slider to control the strength of the prompt.
|
509 |
+
3. Adjust the Tau (Temperature) slider to control the randomness of the output.
|
510 |
+
4. Adjust the Aspect Ratio (Height/Width) slider to set the aspect ratio of the generated image.
|
511 |
+
5. Click the Generate Image button to generate an image based on the prompt.
|
512 |
+
|
513 |
+
Arxiv Paper:
|
514 |
+
[Infinity: Scaling Bitwise AutoRegressive Modeling for High-Resolution Image Synthesis](https://arxiv.org/abs/2412.04431).
|
515 |
+
"""
|
516 |
+
html_header = """<div style="text-align: center; margin-bottom: 20px;">
|
517 |
+
<h1>Infinity Image Generator</h1>
|
518 |
+
<h2>by <a href="https://github.com/FoundationVision/Infinity" target="_blank" rel="noopener noreferrer">FoundationVision</a></h2>
|
519 |
+
<p style="font-size: 14px; color: #888;">This is not the official implementation from the main developers!</p>
|
520 |
+
</div>"""
|
521 |
with gr.Blocks() as demo:
|
522 |
+
gr.HTML(html_header)
|
523 |
+
gr.Markdown(markdown_description)
|
524 |
|
525 |
with gr.Row():
|
526 |
with gr.Column():
|