ehristoforu commited on
Commit
416de49
1 Parent(s): f76f1bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,7 +10,7 @@ API_TOKEN = os.getenv("HF_READ_TOKEN")
10
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
11
 
12
 
13
- def query(prompt, is_negative=False, image_style="None style", steps=15, cfg_scale=7, seed=None, num_images=2):
14
  images = []
15
  for _ in range(num_images):
16
  if image_style == "None style":
@@ -186,8 +186,8 @@ with gr.Blocks(css=css) as demo:
186
  with gr.Box():
187
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
188
  with gr.Column():
189
- text_prompt = gr.Textbox(label="Prompt", placeholder="a cute cat", max_lines=1, elem_id="prompt-text-input").style(border=(True, False, True, True), rounded=(True, False, False, True), container=False)
190
- negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry, fuzziness", max_lines=1, elem_id="negative-prompt-text-input").style(border=(True, False, True, True), rounded=(True, False, False, True), container=False)
191
  text_button = gr.Button("Generate").style(margin=False, rounded=(False, True, True, False), full_width=False)
192
 
193
  gallery_output = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="auto")
 
10
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
11
 
12
 
13
+ def query(prompt, is_negative=False, image_style="None style", steps=10, cfg_scale=7, seed=None, num_images=2):
14
  images = []
15
  for _ in range(num_images):
16
  if image_style == "None style":
 
186
  with gr.Box():
187
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
188
  with gr.Column():
189
+ text_prompt = gr.Textbox(show_label=False, placeholder="Enter your prompt", max_lines=1, elem_id="prompt-text-input").style(border=(True, False, True, True), rounded=(True, False, False, True), container=False)
190
+ negative_prompt = gr.Textbox(show_label=False, placeholder="Enter your negative prompt", max_lines=1, elem_id="negative-prompt-text-input").style(border=(True, False, True, True), rounded=(True, False, False, True), container=False)
191
  text_button = gr.Button("Generate").style(margin=False, rounded=(False, True, True, False), full_width=False)
192
 
193
  gallery_output = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="auto")