Brian Watson commited on
Commit
c3fddcc
1 Parent(s): 6c2fcdd

Update app.py

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