File size: 468 Bytes
6d24409
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()