Spaces:
Sleeping
Sleeping
init
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def recipe_interface(meal_name: str, calories: int, meal_time: str) -> str:
|
|
54 |
recipe = generate_recipe(meal_name, calories, meal_time)
|
55 |
return format_recipe(recipe)
|
56 |
|
57 |
-
|
58 |
fn=recipe_interface,
|
59 |
inputs=[
|
60 |
gr.Textbox(label="Meal Name"),
|
@@ -66,4 +66,4 @@ iface = gr.Interface(
|
|
66 |
description="Generate a recipe based on meal name, calories, and meal time."
|
67 |
)
|
68 |
|
69 |
-
|
|
|
54 |
recipe = generate_recipe(meal_name, calories, meal_time)
|
55 |
return format_recipe(recipe)
|
56 |
|
57 |
+
demo = gr.Interface(
|
58 |
fn=recipe_interface,
|
59 |
inputs=[
|
60 |
gr.Textbox(label="Meal Name"),
|
|
|
66 |
description="Generate a recipe based on meal name, calories, and meal time."
|
67 |
)
|
68 |
|
69 |
+
demo.launch()
|