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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -23,9 +23,6 @@ translator = pipeline(
23
  url1 = "https://github.com/Shahad-b/Image-database/blob/main/sea.jpg?raw=true"
24
  sea = wget.download(url1)
25
 
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
@@ -59,8 +56,7 @@ interface = gr.Interface(
59
  title="Image Generation and Translation",
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
 
 
23
  url1 = "https://github.com/Shahad-b/Image-database/blob/main/sea.jpg?raw=true"
24
  sea = wget.download(url1)
25
 
 
 
 
26
  # Function to generate images based on the image's caption
27
  def generate_image_and_translate(image, num_images=1):
28
  # Generate caption in English from the uploaded image
 
56
  title="Image Generation and Translation",
57
  description="Upload an image to generate new images based on its caption and translate the caption into Arabic.",
58
  examples=[
59
+ ["sea.jpg", 3]
 
60
  ]
61
  )
62