EmilyWitko HF staff commited on
Commit
b6fb37b
1 Parent(s): c7a0ce6

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": "Users/EmilyWitko/desktop/David AI/david.jpg",
6
- "Kikou": "Users/EmilyWitko/desktop/David AI/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 AI/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": "Users/EmilyWitko/desktop/David/david.jpg",
6
+ "Kikou": "Users/EmilyWitko/desktop/David/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