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()