Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
-
|
|
|
|
| 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 =
|
| 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()
|