Spaces:
Runtime error
Runtime error
Commit
Β·
745d7df
1
Parent(s):
abcb468
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,17 +30,17 @@ with gr.Blocks() as app:
|
|
| 30 |
with gr.Row():
|
| 31 |
concept_index = gr.Dropdown(label='Select image style', value='Oil Painting', type="index", choices=['Oil Painting', 'Low Poly HD Style', 'Matrix Style', 'Dreamy Painting', 'Depth Map Style'] )
|
| 32 |
|
| 33 |
-
with gr.Row(visible=True):
|
| 34 |
-
out1 = gr.Image(value="out1.png", interactive=False, width=128, height=128, label='Oil Painting')
|
| 35 |
-
out2 = gr.Image(value="out2.png", interactive=False, width=128, height=128, label='Low Poly HD Style')
|
| 36 |
-
out3 = gr.Image(value="out3.png", interactive=False, width=128, height=128, label='Matrix Style')
|
| 37 |
-
out4 = gr.Image(value="out4.png", interactive=False, width=128, height=128, label='Dreamy Painting')
|
| 38 |
-
out5 = gr.Image(value="out5.png", interactive=False, width=128, height=128, label='Depth Map Style')
|
| 39 |
-
|
| 40 |
with gr.Row(visible=True):
|
| 41 |
submit_btn = gr.Button("Submit", variant='primary')
|
| 42 |
clear_btn = gr.ClearButton()
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
with gr.Tab("Additional Guidance with Contrast Adjustment"):
|
| 45 |
|
| 46 |
with gr.Row():
|
|
@@ -53,18 +53,18 @@ with gr.Blocks() as app:
|
|
| 53 |
concept_index2 = gr.Dropdown(label='Select image style', value='Oil Painting', type="index", choices=['Oil Painting', 'Low Poly HD Style', 'Matrix Style', 'Dreamy Painting', 'Depth Map Style'] )
|
| 54 |
contrast_perc = gr.Slider(value=90, minimum=-100, maximum=100, label='Contrast Adjustment')
|
| 55 |
|
| 56 |
-
|
| 57 |
-
with gr.Row(visible=True):
|
| 58 |
-
out11 = gr.Image(value="out11.png", interactive=False, width=128, height=128, label='Oil Painting')
|
| 59 |
-
out12 = gr.Image(value="out12.png", interactive=False, width=128, height=128, label='Low Poly HD Style')
|
| 60 |
-
out13 = gr.Image(value="out13.png", interactive=False, width=128, height=128, label='Matrix Style')
|
| 61 |
-
out14 = gr.Image(value="out14.png", interactive=False, width=128, height=128, label='Dreamy Painting')
|
| 62 |
-
out15 = gr.Image(value="out15.png", interactive=False, width=128, height=128, label='Depth Map Style')
|
| 63 |
-
|
| 64 |
with gr.Row(visible=True):
|
| 65 |
submit_btn2 = gr.Button("Submit", variant='primary')
|
| 66 |
clear_btn2 = gr.ClearButton()
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
def clear_data():
|
| 69 |
return {
|
| 70 |
out1: None,
|
|
|
|
| 30 |
with gr.Row():
|
| 31 |
concept_index = gr.Dropdown(label='Select image style', value='Oil Painting', type="index", choices=['Oil Painting', 'Low Poly HD Style', 'Matrix Style', 'Dreamy Painting', 'Depth Map Style'] )
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
with gr.Row(visible=True):
|
| 34 |
submit_btn = gr.Button("Submit", variant='primary')
|
| 35 |
clear_btn = gr.ClearButton()
|
| 36 |
|
| 37 |
+
with gr.Row(visible=True):
|
| 38 |
+
out1 = gr.Image(value="out1.png", interactive=False, label='Oil Painting')
|
| 39 |
+
out2 = gr.Image(value="out2.png", interactive=False, label='Low Poly HD Style')
|
| 40 |
+
out3 = gr.Image(value="out3.png", interactive=False, label='Matrix Style')
|
| 41 |
+
out4 = gr.Image(value="out4.png", interactive=False, label='Dreamy Painting')
|
| 42 |
+
out5 = gr.Image(value="out5.png", interactive=False, label='Depth Map Style')
|
| 43 |
+
|
| 44 |
with gr.Tab("Additional Guidance with Contrast Adjustment"):
|
| 45 |
|
| 46 |
with gr.Row():
|
|
|
|
| 53 |
concept_index2 = gr.Dropdown(label='Select image style', value='Oil Painting', type="index", choices=['Oil Painting', 'Low Poly HD Style', 'Matrix Style', 'Dreamy Painting', 'Depth Map Style'] )
|
| 54 |
contrast_perc = gr.Slider(value=90, minimum=-100, maximum=100, label='Contrast Adjustment')
|
| 55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
with gr.Row(visible=True):
|
| 57 |
submit_btn2 = gr.Button("Submit", variant='primary')
|
| 58 |
clear_btn2 = gr.ClearButton()
|
| 59 |
|
| 60 |
+
with gr.Row(visible=True):
|
| 61 |
+
out11 = gr.Image(value="out11.png", interactive=False, label='Oil Painting')
|
| 62 |
+
out12 = gr.Image(value="out12.png", interactive=False, label='Low Poly HD Style')
|
| 63 |
+
out13 = gr.Image(value="out13.png", interactive=False, label='Matrix Style')
|
| 64 |
+
out14 = gr.Image(value="out14.png", interactive=False, label='Dreamy Painting')
|
| 65 |
+
out15 = gr.Image(value="out15.png", interactive=False, label='Depth Map Style')
|
| 66 |
+
|
| 67 |
+
|
| 68 |
def clear_data():
|
| 69 |
return {
|
| 70 |
out1: None,
|