Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from huggingface_hub import InferenceClient
|
|
| 4 |
theme = gr.themes.Ocean(
|
| 5 |
primary_hue="red",
|
| 6 |
secondary_hue="amber",
|
| 7 |
-
neutral_hue="
|
| 8 |
)
|
| 9 |
|
| 10 |
client = InferenceClient("microsoft/phi-4")
|
|
@@ -50,6 +50,9 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 50 |
)
|
| 51 |
have_items = gr.Textbox(label="Ingredients you have (comma separated)", placeholder="pasta,tomato,garlic")
|
| 52 |
allergies = gr.Textbox(label="Allergies (comma separated)", placeholder="gluten,soy")
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
demo.launch()
|
|
|
|
| 4 |
theme = gr.themes.Ocean(
|
| 5 |
primary_hue="red",
|
| 6 |
secondary_hue="amber",
|
| 7 |
+
neutral_hue="emerald",
|
| 8 |
)
|
| 9 |
|
| 10 |
client = InferenceClient("microsoft/phi-4")
|
|
|
|
| 50 |
)
|
| 51 |
have_items = gr.Textbox(label="Ingredients you have (comma separated)", placeholder="pasta,tomato,garlic")
|
| 52 |
allergies = gr.Textbox(label="Allergies (comma separated)", placeholder="gluten,soy")
|
| 53 |
+
gr.ChatInterface(
|
| 54 |
+
fn=respond,
|
| 55 |
+
additional_inputs=[budget, have_items, allergies]
|
| 56 |
+
)
|
| 57 |
|
| 58 |
demo.launch()
|