kadirnar commited on
Commit
535fa30
·
verified ·
1 Parent(s): 7bf8186

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -12,7 +12,7 @@ def initialize_auraflow_pipeline():
12
  ).to("cuda")
13
  return pipeline
14
 
15
- @spaces.GPU(duration=100)
16
  def generate_image(pipeline, prompt, width, height, num_inference_steps, seed, guidance_scale):
17
  """Generate an image using the AuraFlowPipeline."""
18
  generator = torch.Generator().manual_seed(seed)
@@ -40,7 +40,7 @@ with gr.Blocks() as demo:
40
  gr.HTML(
41
  """
42
  <h1 style='text-align: center'>
43
- YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information
44
  </h1>
45
  """)
46
  gr.HTML(
@@ -53,9 +53,9 @@ with gr.Blocks() as demo:
53
  with gr.Row():
54
  with gr.Column():
55
  prompt_input = gr.Textbox(label="Prompt", placeholder="Enter your image prompt here...")
56
- width_input = gr.Slider(minimum=512, maximum=2048, step=64, value=1536, label="Width")
57
- height_input = gr.Slider(minimum=512, maximum=2048, step=64, value=768, label="Height")
58
- steps_input = gr.Slider(minimum=10, maximum=100, step=1, value=50, label="Number of Inference Steps")
59
  seed_input = gr.Number(label="Seed", value=1)
60
  guidance_input = gr.Slider(minimum=1, maximum=10, step=0.1, value=3.5, label="Guidance Scale")
61
  generate_btn = gr.Button("Generate Image")
 
12
  ).to("cuda")
13
  return pipeline
14
 
15
+ @spaces.GPU(duration=150)
16
  def generate_image(pipeline, prompt, width, height, num_inference_steps, seed, guidance_scale):
17
  """Generate an image using the AuraFlowPipeline."""
18
  generator = torch.Generator().manual_seed(seed)
 
40
  gr.HTML(
41
  """
42
  <h1 style='text-align: center'>
43
+ AuraFlow v0.3
44
  </h1>
45
  """)
46
  gr.HTML(
 
53
  with gr.Row():
54
  with gr.Column():
55
  prompt_input = gr.Textbox(label="Prompt", placeholder="Enter your image prompt here...")
56
+ width_input = gr.Slider(minimum=256, maximum=1024, step=64, value=1024, label="Width")
57
+ height_input = gr.Slider(minimum=256, maximum=1024, step=64, value=1024, label="Height")
58
+ steps_input = gr.Slider(minimum=10, maximum=100, step=1, value=20, label="Number of Inference Steps")
59
  seed_input = gr.Number(label="Seed", value=1)
60
  guidance_input = gr.Slider(minimum=1, maximum=10, step=0.1, value=3.5, label="Guidance Scale")
61
  generate_btn = gr.Button("Generate Image")