shahad-b commited on
Commit
7346a6f
·
verified ·
1 Parent(s): 07d3eb6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -26,9 +26,6 @@ sea = wget.download(url1)
26
  url2 = "https://github.com/Shahad-b/Image-database/blob/main/Cat.jpeg?raw=true"
27
  Cat = wget.download(url2)
28
 
29
- url3 = "https://github.com/Shahad-b/Image-database/blob/main/Car.jpeg?raw=true"
30
- Car = wget.download(url3)
31
-
32
  # Function to generate images based on the image's caption
33
  def generate_image_and_translate(image, num_images=1):
34
  # Generate caption in English from the uploaded image
@@ -63,8 +60,7 @@ interface = gr.Interface(
63
  description="Upload an image to generate new images based on its caption and translate the caption into Arabic.",
64
  examples=[
65
  ["sea.jpg", 3],
66
- ["Cat.jpeg", 4],
67
- ["Car.jpeg", 2]
68
  ]
69
  )
70
 
 
26
  url2 = "https://github.com/Shahad-b/Image-database/blob/main/Cat.jpeg?raw=true"
27
  Cat = wget.download(url2)
28
 
 
 
 
29
  # Function to generate images based on the image's caption
30
  def generate_image_and_translate(image, num_images=1):
31
  # Generate caption in English from the uploaded image
 
60
  description="Upload an image to generate new images based on its caption and translate the caption into Arabic.",
61
  examples=[
62
  ["sea.jpg", 3],
63
+ ["Cat.jpeg", 4]
 
64
  ]
65
  )
66