charlescxk commited on
Commit
5f97a8f
·
1 Parent(s): 0c6fab2
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +2 -2
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 used Real-ESRGAN to perform 2x image upsampling. This upsampling does not alter the content of the images but makes them slightly clearer for easier viewing.
 
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. ([1] Prompt in more detail can help produce better images! [2] Based on local tests, if the GPU is idle, a 40GB A100 can generate a batch of 5 images in ~25 seconds.)")
237
- seed_input = gr.Number(label="Seed (Optional)", precision=0, value=12345)
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