1Noura commited on
Commit
cd2968b
·
verified ·
1 Parent(s): 0f9e8fd

Update app.py

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