Brian Watson commited on
Commit
28df7fc
1 Parent(s): b6f7524

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -16
app.py CHANGED
@@ -42,7 +42,7 @@ with gr.Blocks() as myface:
42
 
43
  with gr.Row():
44
  with gr.Row():
45
- input_text = gr.Textbox(label="Prompt idea", placeholder="Eg. Eyewear model", lines=1)
46
  # Model selection dropdown
47
  model_name1 = gr.Dropdown(
48
  label="Choose Model",
@@ -71,16 +71,8 @@ with gr.Blocks() as myface:
71
  magic4 = gr.Textbox(label="Generated Prompt", lines=2)
72
  magic5 = gr.Textbox(label="Generated Prompt", lines=2)
73
  magic6 = gr.Textbox(label="Generated Prompt", lines=2)
74
- with gr.Row():
75
- output7 = gr.Image(label="")
76
- output8 = gr.Image(label="")
77
- output9 = gr.Image(label="")
78
- with gr.Row():
79
- magic7 = gr.Textbox(label="Generated Prompt", lines=2)
80
- magic8 = gr.Textbox(label="Generated Prompt", lines=2)
81
- magic9 = gr.Textbox(label="Generated Prompt", lines=2)
82
 
83
- model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6, output7, output8, output9])
84
 
85
  run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
86
  run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
@@ -88,9 +80,6 @@ with gr.Blocks() as myface:
88
  run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
89
  run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
90
  run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
91
- run.click(send_it, inputs=[magic7, model_name1], outputs=[output7])
92
- run.click(send_it, inputs=[magic8, model_name1], outputs=[output8])
93
- run.click(send_it, inputs=[magic9, model_name1], outputs=[output9])
94
 
95
  see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
96
  see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
@@ -98,9 +87,6 @@ with gr.Blocks() as myface:
98
  see_prompts.click(text_it, inputs=[input_text], outputs=[magic4])
99
  see_prompts.click(text_it, inputs=[input_text], outputs=[magic5])
100
  see_prompts.click(text_it, inputs=[input_text], outputs=[magic6])
101
- see_prompts.click(text_it, inputs=[input_text], outputs=[magic7])
102
- see_prompts.click(text_it, inputs=[input_text], outputs=[magic8])
103
- see_prompts.click(text_it, inputs=[input_text], outputs=[magic9])
104
 
105
  myface.queue(concurrency_count=200)
106
  myface.launch(inline=True, show_api=False, max_threads=400)
 
42
 
43
  with gr.Row():
44
  with gr.Row():
45
+ input_text = gr.Textbox(label="Prompt idea", placeholder="Eg. Sunrise, forest, cinemtic or Mystical zen forest", lines=1)
46
  # Model selection dropdown
47
  model_name1 = gr.Dropdown(
48
  label="Choose Model",
 
71
  magic4 = gr.Textbox(label="Generated Prompt", lines=2)
72
  magic5 = gr.Textbox(label="Generated Prompt", lines=2)
73
  magic6 = gr.Textbox(label="Generated Prompt", lines=2)
 
 
 
 
 
 
 
 
74
 
75
+ model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6])
76
 
77
  run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
78
  run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
 
80
  run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
81
  run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
82
  run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
 
 
 
83
 
84
  see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
85
  see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
 
87
  see_prompts.click(text_it, inputs=[input_text], outputs=[magic4])
88
  see_prompts.click(text_it, inputs=[input_text], outputs=[magic5])
89
  see_prompts.click(text_it, inputs=[input_text], outputs=[magic6])
 
 
 
90
 
91
  myface.queue(concurrency_count=200)
92
  myface.launch(inline=True, show_api=False, max_threads=400)