Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -25,7 +25,8 @@ async def process_image(file: UploadFile = File(...)):
|
|
| 25 |
|
| 26 |
# Send image file path to Hugging Face API
|
| 27 |
result = client.predict(
|
| 28 |
-
image
|
|
|
|
| 29 |
api_name="/input_image"
|
| 30 |
)
|
| 31 |
|
|
|
|
| 25 |
|
| 26 |
# Send image file path to Hugging Face API
|
| 27 |
result = client.predict(
|
| 28 |
+
image=handle_file('https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png'),
|
| 29 |
+
#image = file_path, # File path of uploaded image
|
| 30 |
api_name="/input_image"
|
| 31 |
)
|
| 32 |
|