EmilyWitko HF staff commited on
Commit
baba983
1 Parent(s): e3fd139

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,15 +2,15 @@ import gradio as gr
2
 
3
  # Assuming you have a dictionary of pet names and their image URLs or file paths
4
  pet_images = {
5
- "David": "https://huggingface.co/spaces/EmilyWitko/PetsatHF/tree/main/david.jpg",
6
- "Kikou": "https://huggingface.co/spaces/EmilyWitko/PetsatHF/tree/main/david.jpg/kikou.jpg",
7
  # Add as many pets as you have
8
  }
9
 
10
  # Define your Gradio interface here
11
  def your_function(pet_name):
12
  # Handle the input and produce the image path or URL
13
- image_path = pet_images.get(pet_name, "Users/EmilyWitko/desktop/David/david.jpg") # Default if pet not found
14
  return image_path
15
 
16
  # Create the interface
 
2
 
3
  # Assuming you have a dictionary of pet names and their image URLs or file paths
4
  pet_images = {
5
+ "David": "./david.jpg",
6
+ "Kikou": "./kikou.jpg",
7
  # Add as many pets as you have
8
  }
9
 
10
  # Define your Gradio interface here
11
  def your_function(pet_name):
12
  # Handle the input and produce the image path or URL
13
+ image_path = pet_images.get(pet_name, "/david.jpg") # Default if pet not found
14
  return image_path
15
 
16
  # Create the interface