Paolo-Fraccaro commited on
Commit
734393f
1 Parent(s): f96a3c0

fix legend?

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app.py +11 -11
Dockerfile CHANGED
@@ -75,4 +75,4 @@ ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/code/miniconda/lib"
75
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
76
  COPY --chown=user . $HOME/app
77
 
78
- CMD ["python3", "app.py"]
 
75
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
76
  COPY --chown=user . $HOME/app
77
 
78
+ CMD ["python3", "app.py"]
app.py CHANGED
@@ -219,19 +219,19 @@ with gr.Blocks() as demo:
219
  inp2=gr.Image(image_mode='RGB', scale=10, label='T2')
220
  inp3=gr.Image(image_mode='RGB', scale=10, label='T3')
221
  out = gr.Image(image_mode='RGB', scale=10, label='Model prediction')
222
- gr.Image(value='Legend.png', image_mode='RGB', scale=3, show_label=False)
223
 
224
  btn.click(fn=func, inputs=inp, outputs=[inp1, inp2, inp3, out])
225
 
226
- # with gr.Row():
227
- # gr.Examples(examples=["chip_102_345_merged.tif",
228
- # "chip_104_104_merged.tif",
229
- # "chip_109_421_merged.tif"],
230
- # inputs=inp,
231
- # outputs=[inp1, inp2, inp3, out],
232
- # preprocess=preprocess_example,
233
- # fn=func,
234
- # cache_examples=True,
235
- # )
236
 
237
  demo.launch()
 
219
  inp2=gr.Image(image_mode='RGB', scale=10, label='T2')
220
  inp3=gr.Image(image_mode='RGB', scale=10, label='T3')
221
  out = gr.Image(image_mode='RGB', scale=10, label='Model prediction')
222
+ gr.Image(value='Legend.png', image_mode='RGB', scale=2, show_label=False)
223
 
224
  btn.click(fn=func, inputs=inp, outputs=[inp1, inp2, inp3, out])
225
 
226
+ with gr.Row():
227
+ gr.Examples(examples=["chip_102_345_merged.tif",
228
+ "chip_104_104_merged.tif",
229
+ "chip_109_421_merged.tif"],
230
+ inputs=inp,
231
+ outputs=[inp1, inp2, inp3, out],
232
+ preprocess=preprocess_example,
233
+ fn=func,
234
+ cache_examples=True,
235
+ )
236
 
237
  demo.launch()