EmilyWitko HF staff commited on
Commit
1ff7175
1 Parent(s): c045160

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,4 +1,5 @@
1
- import gradio as gr
 
2
 
3
  # Define the nested dictionary of owners and their respective pets
4
  owner_pets = {
@@ -27,7 +28,7 @@ def your_gradio_function(owner_name):
27
  return image_path
28
 
29
  # Create the interface
30
- interface = gr.Interface(fn=your_gradio_function, inputs=["text"], outputs="image")
31
 
32
  # Launch the interface
33
  interface.launch()
 
1
+ # Import necessary library
2
+ import gradio
3
 
4
  # Define the nested dictionary of owners and their respective pets
5
  owner_pets = {
 
28
  return image_path
29
 
30
  # Create the interface
31
+ interface = gradio.Interface(fn=your_gradio_function, inputs=["text"], outputs="image")
32
 
33
  # Launch the interface
34
  interface.launch()