Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,10 +34,8 @@ with gr.Blocks() as generated_output:
|
|
| 34 |
outputs="image",
|
| 35 |
show_progress="minimal")
|
| 36 |
with gr.Row():
|
| 37 |
-
gr.Textbox(label="
|
| 38 |
-
|
| 39 |
-
# inputs = gr.Image(label="image"),
|
| 40 |
-
# outputs = gr.Textbox())
|
| 41 |
|
| 42 |
#with gr.Blocks() as generated_output:
|
| 43 |
# inp = gr.Interface(sepia, gr.Image(), "image")
|
|
@@ -46,14 +44,14 @@ with gr.Blocks() as generated_output:
|
|
| 46 |
|
| 47 |
#demo = gr.TabbedInterface([sepia_interface, generated_output], ["RGB Sepia Filter", "Handwritten to Text"])
|
| 48 |
|
| 49 |
-
with gr.Blocks() as demo:
|
| 50 |
-
with gr.Row():
|
| 51 |
-
input_img = gr.Image(label="Input Image")
|
| 52 |
-
submit_button = gr.Button("Submit")
|
| 53 |
-
output_img = gr.Image(label="Output Image")
|
| 54 |
-
sepia_values_text = gr.Textbox(label="Sepia Values")
|
| 55 |
|
| 56 |
-
submit_button.click(sepia, inputs=input_img, outputs=[output_img, sepia_values_text])
|
| 57 |
|
| 58 |
if __name__ == "__main__":
|
| 59 |
-
|
|
|
|
| 34 |
outputs="image",
|
| 35 |
show_progress="minimal")
|
| 36 |
with gr.Row():
|
| 37 |
+
sepia_values_text=gr.Textbox(label="Sepia Values")
|
| 38 |
+
gr.Interface(sepia, outputs = "sepia_values_text")
|
|
|
|
|
|
|
| 39 |
|
| 40 |
#with gr.Blocks() as generated_output:
|
| 41 |
# inp = gr.Interface(sepia, gr.Image(), "image")
|
|
|
|
| 44 |
|
| 45 |
#demo = gr.TabbedInterface([sepia_interface, generated_output], ["RGB Sepia Filter", "Handwritten to Text"])
|
| 46 |
|
| 47 |
+
#with gr.Blocks() as demo:
|
| 48 |
+
# with gr.Row():
|
| 49 |
+
# input_img = gr.Image(label="Input Image")
|
| 50 |
+
# submit_button = gr.Button("Submit")
|
| 51 |
+
# output_img = gr.Image(label="Output Image")
|
| 52 |
+
# sepia_values_text = gr.Textbox(label="Sepia Values")
|
| 53 |
|
| 54 |
+
# submit_button.click(sepia, inputs=input_img, outputs=[output_img, sepia_values_text])
|
| 55 |
|
| 56 |
if __name__ == "__main__":
|
| 57 |
+
generated_output.launch()
|