Spaces:
Running
on
Zero
Running
on
Zero
charlescxk
commited on
Commit
·
5f97a8f
1
Parent(s):
0c6fab2
update
Browse files
README.md
CHANGED
@@ -13,4 +13,4 @@ short_description: A unified multimodal understanding and generation model.
|
|
13 |
|
14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
15 |
|
16 |
-
Please note that after generating the images with Janus-Pro, we
|
|
|
13 |
|
14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
15 |
|
16 |
+
Please note that after generating the images with Janus-Pro, we use Real-ESRGAN to perform 2x image upsampling (just in this demo). This upsampling does not alter the content of the images but makes them slightly clearer for easier viewing.
|
app.py
CHANGED
@@ -233,8 +233,8 @@ with gr.Blocks() as demo:
|
|
233 |
cfg_weight_input = gr.Slider(minimum=1, maximum=10, value=5, step=0.5, label="CFG Weight")
|
234 |
t2i_temperature = gr.Slider(minimum=0, maximum=1, value=1.0, step=0.05, label="temperature")
|
235 |
|
236 |
-
prompt_input = gr.Textbox(label="Prompt. (
|
237 |
-
seed_input = gr.Number(label="Seed (Optional)", precision=0, value=
|
238 |
|
239 |
generation_button = gr.Button("Generate Images")
|
240 |
|
|
|
233 |
cfg_weight_input = gr.Slider(minimum=1, maximum=10, value=5, step=0.5, label="CFG Weight")
|
234 |
t2i_temperature = gr.Slider(minimum=0, maximum=1, value=1.0, step=0.05, label="temperature")
|
235 |
|
236 |
+
prompt_input = gr.Textbox(label="Prompt. (Prompt in more detail can help produce better images!")
|
237 |
+
seed_input = gr.Number(label="Seed (Optional)", precision=0, value=1234)
|
238 |
|
239 |
generation_button = gr.Button("Generate Images")
|
240 |
|