Spaces:
Runtime error
Runtime error
Update app.py
Browse files22 unmodified lines232425262728293031323328 unmodified lines62636465666768697022 unmodified linesurl1 = "https://github.com/Shahad-b/Image-database/blob/main/sea.jpg?raw=true"sea = wget.download(url1)url2 = "https://github.com/Shahad-b/Image-database/blob/main/Cat.jpeg?raw=true"Cat = wget.download(url2)url3 = "https://github.com/Shahad-b/Image-database/blob/main/Car.jpeg?raw=true"Car = wget.download(url3)# Function to generate images based on the image's captiondef generate_image_and_translate(image, num_images=1):28 unmodified linestitle="Image Generation and Translation",description="Upload an image to generate new images based on its caption and translate the caption into Arabic.",examples=[["sea.jpg", 3],["Cat.jpeg", 4],["Car.jpeg", 2]])22 unmodified lines2324252627282928 unmodified lines5859606162636422 unmodified linesurl1 = "https://github.com/Shahad-b/Image-database/blob/main/sea.jpg?raw=true"sea = wget.download(url1)# Function to generate images based on the image's captiondef generate_image_and_translate(image, num_images=1):28 unmodified linestitle="Image Generation and Translation",description="Upload an image to generate new images based on its caption and translate the caption into Arabic.",examples=[["sea.jpg", 3]])
app.py+1-7