Spaces:
Build error
Build error
Download app.py from PrashanthB461/Recipe_Finder: direct link, hf CLI and curl.
- Browser
- Download file 468 Bytes
-
https://huggingface.co/spaces/PrashanthB461/Recipe_Finder/resolve/main/app.py
- Command line
-
hf download hf://spaces/PrashanthB461/Recipe_Finder/app.py
-
curl -L -o app.py https://huggingface.co/spaces/PrashanthB461/Recipe_Finder/resolve/main/app.py
468 Bytes
| import gradio as gr | |
| from recipe_suggestions import get_recipe_suggestion | |
| def recipe_finder(ingredients): | |
| # Call the function to get recipe based on ingredients | |
| return get_recipe_suggestion(ingredients) | |
| # Create a Gradio interface | |
| iface = gr.Interface(fn=recipe_finder, | |
| inputs=gr.Textbox(label="Enter Ingredients (comma-separated)"), | |
| outputs=gr.Textbox(label="Suggested Dish")) | |
| # Launch the interface | |
| iface.launch() | |