Ashrafb commited on
Commit
6ba8622
·
1 Parent(s): 871eaf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -132,7 +132,7 @@ with gr.Blocks(
132
  with gr.Row(variant="compact"):
133
  # Define input components
134
  upload_source_image = gr.Image(label="Upload Source Image", source="upload").style(
135
- container=False,
136
  box={'height': '400px'}
137
  )
138
  source_face_position = gr.Number(
@@ -149,26 +149,27 @@ with gr.Blocks(
149
  visible=False
150
  )
151
  input_text = gr.Textbox(
152
- lines=3,
153
  label="Enter your prompt",
154
- show_label=False,
155
  max_lines=10,
156
  placeholder="Enter your text prompt here",
157
  ).style(
158
- container=False,
159
  textarea={'height': '400px'}
160
  )
161
 
162
  # Define buttons
163
- swap_button = gr.Button("Perform Face Swap").style(full_width=False)
164
- generate_button = gr.Button("Generate Image").style(full_width=False)
 
165
 
166
  # Output section
167
  with gr.Row():
168
  with gr.Row():
169
  # Set source to None to disable upload functionality for this output
170
- output_generated_image = gr.Image(show_share_button=False,interactive=False )
171
- output_face_swap_result = gr.Image(show_share_button=False)
172
 
173
  # Define click events for buttons
174
  generate_button.click(send_it1, inputs=[input_text], outputs=[output_generated_image])
 
132
  with gr.Row(variant="compact"):
133
  # Define input components
134
  upload_source_image = gr.Image(label="Upload Source Image", source="upload").style(
135
+
136
  box={'height': '400px'}
137
  )
138
  source_face_position = gr.Number(
 
149
  visible=False
150
  )
151
  input_text = gr.Textbox(
152
+ lines=2,
153
  label="Enter your prompt",
154
+
155
  max_lines=10,
156
  placeholder="Enter your text prompt here",
157
  ).style(
158
+
159
  textarea={'height': '400px'}
160
  )
161
 
162
  # Define buttons
163
+
164
+ generate_button = gr.Button("AI Image").style(full_width=False)
165
+ swap_button = gr.Button("Run").style(full_width=False)
166
 
167
  # Output section
168
  with gr.Row():
169
  with gr.Row():
170
  # Set source to None to disable upload functionality for this output
171
+ output_generated_image = gr.Image(label="AI Image", show_share_button=False,interactive=False )
172
+ output_face_swap_result = gr.Image(label="result", show_share_button=False)
173
 
174
  # Define click events for buttons
175
  generate_button.click(send_it1, inputs=[input_text], outputs=[output_generated_image])