PuristanLabs1 commited on
Commit
2ece525
·
verified ·
1 Parent(s): 22a556b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  # Import necessary libraries
2
  from together import Together
 
3
  import os
4
 
5
  # Retrieve API key from Hugging Face Secrets
@@ -31,7 +32,7 @@ def generate_image(prompt, model="black-forest-labs/FLUX.1-schnell", steps=4):
31
  # Gradio Interface Setup
32
  with gr.Blocks() as app:
33
  gr.Markdown("## Real-Time AI Image Generator 🚀")
34
- gr.Markdown("Start typing a prompt below to generate images in real-time using Together AI's FLUX model.")
35
 
36
  with gr.Row():
37
  prompt_box = gr.Textbox(label="Enter your prompt", placeholder="A horse on the moon")
 
1
  # Import necessary libraries
2
  from together import Together
3
+ import gradio as gr
4
  import os
5
 
6
  # Retrieve API key from Hugging Face Secrets
 
32
  # Gradio Interface Setup
33
  with gr.Blocks() as app:
34
  gr.Markdown("## Real-Time AI Image Generator 🚀")
35
+ gr.Markdown("Start typing a prompt below to generate images in real-time using FLUX Schnell model.")
36
 
37
  with gr.Row():
38
  prompt_box = gr.Textbox(label="Enter your prompt", placeholder="A horse on the moon")