kadirnar commited on
Commit
ec41dba
·
verified ·
1 Parent(s): 9d01db0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -3
app.py CHANGED
@@ -12,7 +12,7 @@ def initialize_auraflow_pipeline():
12
  ).to("cuda")
13
  return pipeline
14
 
15
- @spaces.GPU()
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)
@@ -37,8 +37,19 @@ def gradio_generate_image(prompt, width, height, num_inference_steps, seed, guid
37
 
38
  # Create Gradio Blocks
39
  with gr.Blocks() as demo:
40
- gr.Markdown("# AuraFlow Image Generation")
41
-
 
 
 
 
 
 
 
 
 
 
 
42
  with gr.Row():
43
  with gr.Column():
44
  prompt_input = gr.Textbox(label="Prompt", placeholder="Enter your image prompt here...")
 
12
  ).to("cuda")
13
  return pipeline
14
 
15
+ @spaces.GPU(duration=200)
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)
 
37
 
38
  # Create Gradio Blocks
39
  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(
47
+ """
48
+ <h3 style='text-align: center'>
49
+ Follow me for more!
50
+ <a href='https://twitter.com/kadirnar_ai' target='_blank'>Twitter</a> | <a href='https://github.com/kadirnar' target='_blank'>Github</a> | <a href='https://www.linkedin.com/in/kadir-nar/' target='_blank'>Linkedin</a> | <a href='https://www.huggingface.co/kadirnar/' target='_blank'>HuggingFace</a>
51
+ </h3>
52
+ """)
53
  with gr.Row():
54
  with gr.Column():
55
  prompt_input = gr.Textbox(label="Prompt", placeholder="Enter your image prompt here...")