amosfang commited on
Commit
805d6eb
1 Parent(s): fec631d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -77,13 +77,8 @@ example_image_paths = ["test_1.jpg"]
77
  example_inputs = [Image.open(path) for path in example_image_paths]
78
  example_outputs = [predict(input_image) for input_image in example_inputs]
79
 
80
- import os
81
-
82
- current_directory = os.getcwd()
83
- print("Current Working Directory: ", current_directory)
84
-
85
  # Save the example output image
86
- example_outputs[0].save("predicted_1.jpg")
87
 
88
  iface = gr.Interface(fn=predict,
89
  inputs=gr.Image(label='Upload an expressway image', type="pil"),
 
77
  example_inputs = [Image.open(path) for path in example_image_paths]
78
  example_outputs = [predict(input_image) for input_image in example_inputs]
79
 
 
 
 
 
 
80
  # Save the example output image
81
+ example_outputs[0].save("/home/user/app/predicted_1.jpg")
82
 
83
  iface = gr.Interface(fn=predict,
84
  inputs=gr.Image(label='Upload an expressway image', type="pil"),