Gajendra5490 commited on
Commit
edcdcf8
·
verified ·
1 Parent(s): b94694d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
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 = file_path, # File path of uploaded 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