Inigozr commited on
Commit
26194a0
·
1 Parent(s): 0469a83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -74,13 +74,14 @@ async def read_root():
74
  @app.get("/")
75
  async def read_root():
76
  # Download image content from URL
 
77
  response = requests.get(image_url)
78
  response.raise_for_status()
79
 
80
  # Open the image using PIL
81
  image = Image.open(io.BytesIO(response.content))
82
  # Perform YOLO prediction
83
- predictions = predict_yolo(https://s1.eestatic.com/2018/04/10/actualidad/actualidad_298735505_130172549_1000x500.jpg)
84
 
85
  # Draw bounding boxes on the image
86
  image_np = np.array(image)
 
74
  @app.get("/")
75
  async def read_root():
76
  # Download image content from URL
77
+ image_url = "https://s1.eestatic.com/2018/04/10/actualidad/actualidad_298735505_130172549_1000x500.jpg"
78
  response = requests.get(image_url)
79
  response.raise_for_status()
80
 
81
  # Open the image using PIL
82
  image = Image.open(io.BytesIO(response.content))
83
  # Perform YOLO prediction
84
+ predictions = predict_yolo(image_url)
85
 
86
  # Draw bounding boxes on the image
87
  image_np = np.array(image)