bharat-raghunathan commited on
Commit
a5e716d
1 Parent(s): 645b7e5

Change default val args

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +3 -2
app.py CHANGED
@@ -26,9 +26,9 @@ with gr.Blocks() as demo:
26
  with gr.Column():
27
  prompt = gr.Textbox(label="Prompt", lines=1, value="bhr dosa")
28
  negative_prompt = gr.Textbox(label="Negative Prompt", lines=1, value="deformed")
29
- samples = gr.Slider(label="Number of Images", minimum=1, maximum=4, default=1, step=1)
30
- num_steps = gr.Slider(label="Inference Steps", value=50)
31
- guidance_scale = gr.Slider(label="Guidance Scale", minimum=1, maximum=12, default=7.5, step=0.5)
32
  run = gr.Button(value="Run")
33
  with gr.Column():
34
  gallery = gr.Gallery(label="Outputs").style(grid=(2,2))
 
26
  with gr.Column():
27
  prompt = gr.Textbox(label="Prompt", lines=1, value="bhr dosa")
28
  negative_prompt = gr.Textbox(label="Negative Prompt", lines=1, value="deformed")
29
+ samples = gr.Slider(label="Number of Images", minimum=1, maximum=4, value=1, step=1)
30
+ num_steps = gr.Slider(label="Inference Steps", minimum=25, maximum=100, value=50, step=1)
31
+ guidance_scale = gr.Slider(label="Guidance Scale", minimum=1, maximum=12, value=7.5, step=0.5)
32
  run = gr.Button(value="Run")
33
  with gr.Column():
34
  gallery = gr.Gallery(label="Outputs").style(grid=(2,2))
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  keras-cv
2
- tensorflow==2.11.0
3
- huggingface-hub
 
 
1
  keras-cv
2
+ tensorflow
3
+ huggingface-hub
4
+ pycocotools