Yntec commited on
Commit
1e41a51
·
1 Parent(s): d09fcb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -164,7 +164,7 @@ with gr.Blocks(css=css) as myface:
164
 
165
  with gr.Row():
166
  with gr.Column():
167
- input_text=gr.Textbox(label="Prompt Idea",lines=2)
168
  #Model selection dropdown
169
  model_name1 = gr.Dropdown(show_label=False, choices=[m for m in models], type="index", value=current_model, interactive=True)
170
  with gr.Column():
@@ -207,23 +207,23 @@ with gr.Blocks(css=css) as myface:
207
  run.click(send_it7, inputs=[magic7, model_name1], outputs=[output7])
208
  run.click(send_it8, inputs=[magic8, model_name1], outputs=[output8])
209
 
210
- use_short.click(short_prompt,inputs=[input_text],outputs=magic1)
211
- use_short.click(short_prompt,inputs=[input_text],outputs=magic2)
212
- use_short.click(short_prompt,inputs=[input_text],outputs=magic3)
213
- use_short.click(short_prompt,inputs=[input_text],outputs=magic4)
214
- use_short.click(short_prompt,inputs=[input_text],outputs=magic5)
215
- use_short.click(short_prompt,inputs=[input_text],outputs=magic6)
216
- use_short.click(short_prompt,inputs=[input_text],outputs=magic7)
217
- use_short.click(short_prompt,inputs=[input_text],outputs=magic8)
218
 
219
- see_prompts.click(text_it1,inputs=[input_text],outputs=magic1)
220
- see_prompts.click(text_it2,inputs=[input_text],outputs=magic2)
221
- see_prompts.click(text_it3,inputs=[input_text],outputs=magic3)
222
- see_prompts.click(text_it4,inputs=[input_text],outputs=magic4)
223
- see_prompts.click(text_it5,inputs=[input_text],outputs=magic5)
224
- see_prompts.click(text_it6,inputs=[input_text],outputs=magic6)
225
- see_prompts.click(text_it7,inputs=[input_text],outputs=magic7)
226
- see_prompts.click(text_it8,inputs=[input_text],outputs=magic8)
227
 
228
 
229
 
 
164
 
165
  with gr.Row():
166
  with gr.Column():
167
+ prompt=gr.Textbox(label="Prompt", show_label=False, lines=2,placeholder="[your prompt]").style(container=False)
168
  #Model selection dropdown
169
  model_name1 = gr.Dropdown(show_label=False, choices=[m for m in models], type="index", value=current_model, interactive=True)
170
  with gr.Column():
 
207
  run.click(send_it7, inputs=[magic7, model_name1], outputs=[output7])
208
  run.click(send_it8, inputs=[magic8, model_name1], outputs=[output8])
209
 
210
+ use_short.click(short_prompt,inputs=[prompt],outputs=magic1)
211
+ use_short.click(short_prompt,inputs=[prompt],outputs=magic2)
212
+ use_short.click(short_prompt,inputs=[prompt],outputs=magic3)
213
+ use_short.click(short_prompt,inputs=[prompt],outputs=magic4)
214
+ use_short.click(short_prompt,inputs=[prompt],outputs=magic5)
215
+ use_short.click(short_prompt,inputs=[prompt],outputs=magic6)
216
+ use_short.click(short_prompt,inputs=[prompt],outputs=magic7)
217
+ use_short.click(short_prompt,inputs=[prompt],outputs=magic8)
218
 
219
+ see_prompts.click(text_it1,inputs=[prompt],outputs=magic1)
220
+ see_prompts.click(text_it2,inputs=[prompt],outputs=magic2)
221
+ see_prompts.click(text_it3,inputs=[prompt],outputs=magic3)
222
+ see_prompts.click(text_it4,inputs=[prompt],outputs=magic4)
223
+ see_prompts.click(text_it5,inputs=[prompt],outputs=magic5)
224
+ see_prompts.click(text_it6,inputs=[prompt],outputs=magic6)
225
+ see_prompts.click(text_it7,inputs=[prompt],outputs=magic7)
226
+ see_prompts.click(text_it8,inputs=[prompt],outputs=magic8)
227
 
228
 
229