StKirill commited on
Commit
8dd4d2a
·
1 Parent(s): a6f56d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -61,13 +61,17 @@ def predict(image, prompt):
61
  num_images_per_prompt=1,
62
  ).images
63
 
 
 
 
 
64
 
65
- return(images[0])
66
 
67
  examples = [["cats.png", "cat is smiling"],
68
  ["dog.jpg", "dog with big eyes"],
69
  ["dog1.jpg", "dog with big bone"],
70
- ["limurs.jpg", "limur eating bug"]]
71
 
72
  gr.Interface(
73
  predict,
 
61
  num_images_per_prompt=1,
62
  ).images
63
 
64
+ draw_on_image = ImageDraw.Draw(image)
65
+ # Define the rectangle coordinates (left-top, right-bottom)
66
+ rectangle_coordinates = coords
67
+ draw_on_image.rectangle(rectangle_coordinates, outline="red", width=2)
68
 
69
+ return images[0], image
70
 
71
  examples = [["cats.png", "cat is smiling"],
72
  ["dog.jpg", "dog with big eyes"],
73
  ["dog1.jpg", "dog with big bone"],
74
+ ["limurs.jpg", "limur with bug in mouth"]]
75
 
76
  gr.Interface(
77
  predict,