JustKiddo commited on
Commit
64e1a19
·
verified ·
1 Parent(s): 5334510

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -4
app.py CHANGED
@@ -30,10 +30,10 @@ with gr.Blocks() as generated_output:
30
  with gr.Column():
31
  gr.Interface(fn=sepia,
32
  inputs=gr.Image(),
33
- outputs=["image", "image"],
34
  show_progress="minimal")
35
- #with gr.Row():
36
- #gr.Textbox(label="text")
37
  #gr.Interface(sepia,
38
  # inputs = gr.Image(label="image"),
39
  # outputs = gr.Textbox())
@@ -43,7 +43,16 @@ with gr.Blocks() as generated_output:
43
  # out = gr.Textbox()
44
 
45
 
46
- demo = gr.TabbedInterface([sepia_interface, generated_output], ["RGB Sepia Filter", "Handwritten to Text"])
47
 
 
 
 
 
 
 
 
 
 
48
  if __name__ == "__main__":
49
  demo.launch()
 
30
  with gr.Column():
31
  gr.Interface(fn=sepia,
32
  inputs=gr.Image(),
33
+ outputs="image",
34
  show_progress="minimal")
35
+ with gr.Row():
36
+ gr.Textbox(label="text")
37
  #gr.Interface(sepia,
38
  # inputs = gr.Image(label="image"),
39
  # outputs = gr.Textbox())
 
43
  # out = gr.Textbox()
44
 
45
 
46
+ #demo = gr.TabbedInterface([sepia_interface, generated_output], ["RGB Sepia Filter", "Handwritten to Text"])
47
 
48
+ with gr.Blocks() as demo:
49
+ with gr.Row():
50
+ input_img = gr.Image(label="Input Image")
51
+ submit_button = gr.Button("Submit")
52
+ output_img = gr.Image(label="Output Image")
53
+ sepia_values_text = gr.Textbox(label="Sepia Values")
54
+
55
+ submit_button.click(sepia, inputs=input_img, outputs=[output_img, sepia_values_text])
56
+
57
  if __name__ == "__main__":
58
  demo.launch()