rajatsingh0702 commited on
Commit
daa4cce
1 Parent(s): bbee21b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -90,27 +90,27 @@ with gr.Blocks() as demo:
90
  gr.Markdown("### Enter the **Sketch** & **Reference** on the left side. You can use example list.")
91
  with gr.Row():
92
  with gr.Column():
93
- input1 = [gr.inputs.Image(type="pil", label="Sketch"), gr.inputs.Image(type="pil", label="Reference")]
94
  with gr.Row():
95
  # Clear Button
96
  gr.ClearButton(input1)
97
  btn1 = gr.Button("Submit")
98
  gr.Examples(examples=example_list1, inputs=input1)
99
  with gr.Column():
100
- output1 = [gr.inputs.Image(type="pil", label="Colored Sketch"), gr.Number(label="Prediction time (s)")]
101
  with gr.Tab("Color To Sketch"):
102
  gr.Markdown(
103
  "### Enter the **Colored Sketch** on the left side. You can use example list.")
104
  with gr.Row():
105
  with gr.Column():
106
- input2 = gr.inputs.Image(type="pil", label="Color Sketch")
107
  with gr.Row():
108
  # Clear Button
109
  gr.ClearButton(input2)
110
  btn2 = gr.Button("Submit")
111
  gr.Examples(example_list2, inputs=input2)
112
  with gr.Column():
113
- output2 = [gr.inputs.Image(type="pil", label="Sketch"), gr.Number(label="Prediction time (s)")]
114
  btn1.click(predictS2C, inputs=input1, outputs=output1)
115
  btn2.click(predictC2S, inputs=input2, outputs=output2)
116
  gr.Markdown("""
 
90
  gr.Markdown("### Enter the **Sketch** & **Reference** on the left side. You can use example list.")
91
  with gr.Row():
92
  with gr.Column():
93
+ input1 = [gr.Image(type="pil", label="Sketch"), gr.Image(type="pil", label="Reference")]
94
  with gr.Row():
95
  # Clear Button
96
  gr.ClearButton(input1)
97
  btn1 = gr.Button("Submit")
98
  gr.Examples(examples=example_list1, inputs=input1)
99
  with gr.Column():
100
+ output1 = [gr.Image(type="pil", label="Colored Sketch"), gr.Number(label="Prediction time (s)")]
101
  with gr.Tab("Color To Sketch"):
102
  gr.Markdown(
103
  "### Enter the **Colored Sketch** on the left side. You can use example list.")
104
  with gr.Row():
105
  with gr.Column():
106
+ input2 = gr.Image(type="pil", label="Color Sketch")
107
  with gr.Row():
108
  # Clear Button
109
  gr.ClearButton(input2)
110
  btn2 = gr.Button("Submit")
111
  gr.Examples(example_list2, inputs=input2)
112
  with gr.Column():
113
+ output2 = [gr.Image(type="pil", label="Sketch"), gr.Number(label="Prediction time (s)")]
114
  btn1.click(predictS2C, inputs=input1, outputs=output1)
115
  btn2.click(predictC2S, inputs=input2, outputs=output2)
116
  gr.Markdown("""