phenomenon1981 commited on
Commit
70f68f7
1 Parent(s): de8e8e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -114,15 +114,21 @@ def magic_prompt_section():
114
 
115
 
116
  with gr.Blocks() as myface:
 
 
 
 
 
117
  magic_prompt_section()
 
 
118
  with gr.Row():
119
  noise_level=gr.Slider(minimum=0.1, maximum=3, step=0.1, label="Noise Level: Controls how much randomness is added to the input before it is sent to the model. Higher noise level produces more diverse outputs, while lower noise level produces similar outputs.")
120
  run=gr.Button("Generate")
121
  with gr.Row():
122
  like_message = gr.Button("❤️❤️❤️ Press the Like Button if you enjoy my space! ❤️❤️❤️")
123
 
124
- with gr.Row():
125
- like_message = gr.Button("❤️❤️❤️ Press the Like Button if you enjoy my space! ❤️❤️❤️")
126
  with gr.Row():
127
  output1=gr.Image(label="Dreamlike-photoreal-2.0")
128
  output2=gr.Image(label="Dreamlike-photoreal-2.0")
 
114
 
115
 
116
  with gr.Blocks() as myface:
117
+ see_prompts = gr.Button("Magic Prompt")
118
+ with gr.Row():
119
+ input_text=gr.Textbox(label="Short Prompt")
120
+ with gr.Row():
121
+ prompt=gr.Textbox(label="Enter Prompt")
122
  magic_prompt_section()
123
+ see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt])
124
+
125
  with gr.Row():
126
  noise_level=gr.Slider(minimum=0.1, maximum=3, step=0.1, label="Noise Level: Controls how much randomness is added to the input before it is sent to the model. Higher noise level produces more diverse outputs, while lower noise level produces similar outputs.")
127
  run=gr.Button("Generate")
128
  with gr.Row():
129
  like_message = gr.Button("❤️❤️❤️ Press the Like Button if you enjoy my space! ❤️❤️❤️")
130
 
131
+
 
132
  with gr.Row():
133
  output1=gr.Image(label="Dreamlike-photoreal-2.0")
134
  output2=gr.Image(label="Dreamlike-photoreal-2.0")