Update chatgpt-ad-maker.py
Browse files- chatgpt-ad-maker.py +4 -2
chatgpt-ad-maker.py
CHANGED
|
@@ -107,11 +107,13 @@ with gr.Blocks(title="ChatGPT Ad Maker") as iface:
|
|
| 107 |
gr.Markdown("Convert your image or video into a dotted pattern. Adjust dot size and spacing using the sliders.")
|
| 108 |
|
| 109 |
with gr.Tab("Image"):
|
| 110 |
-
|
|
|
|
|
|
|
| 111 |
with gr.Row():
|
| 112 |
img_dot_size = gr.Slider(minimum=2, maximum=20, value=10, step=1, label="Dot Size")
|
| 113 |
img_spacing = gr.Slider(minimum=0, maximum=10, value=2, step=1, label="Dot Spacing")
|
| 114 |
-
|
| 115 |
image_button = gr.Button("Process Image")
|
| 116 |
image_button.click(
|
| 117 |
fn=create_dot_effect,
|
|
|
|
| 107 |
gr.Markdown("Convert your image or video into a dotted pattern. Adjust dot size and spacing using the sliders.")
|
| 108 |
|
| 109 |
with gr.Tab("Image"):
|
| 110 |
+
with gr.Row():
|
| 111 |
+
image_input = gr.Image(label="Input Image")
|
| 112 |
+
image_output = gr.Image(label="Dotted Output")
|
| 113 |
with gr.Row():
|
| 114 |
img_dot_size = gr.Slider(minimum=2, maximum=20, value=10, step=1, label="Dot Size")
|
| 115 |
img_spacing = gr.Slider(minimum=0, maximum=10, value=2, step=1, label="Dot Spacing")
|
| 116 |
+
|
| 117 |
image_button = gr.Button("Process Image")
|
| 118 |
image_button.click(
|
| 119 |
fn=create_dot_effect,
|