Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"),
|