Recipe_Finder / app.py
PrashanthB461's picture
Create app.py
6d24409 verified
raw
history blame contribute delete
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()