Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from PIL import Image
|
| 3 |
|
| 4 |
-
# Dictionary mapping animals to image file names in the root directory
|
| 5 |
animal_images = {
|
| 6 |
"cat": "cat.jpg",
|
| 7 |
"dog": "dog.jpg",
|
| 8 |
"bird": "bird.jpg",
|
| 9 |
"horse": "horse.jpg",
|
| 10 |
-
# Add more animals and image filenames as needed
|
| 11 |
}
|
| 12 |
|
| 13 |
def fetch_animal_image(animal):
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from PIL import Image
|
| 3 |
|
|
|
|
| 4 |
animal_images = {
|
| 5 |
"cat": "cat.jpg",
|
| 6 |
"dog": "dog.jpg",
|
| 7 |
"bird": "bird.jpg",
|
| 8 |
"horse": "horse.jpg",
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
def fetch_animal_image(animal):
|