Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
client = InferenceClient("microsoft/phi-4")
|
| 6 |
|
|
@@ -35,7 +40,7 @@ def respond(message, history, budget, have_items, allergies):
|
|
| 35 |
)
|
| 36 |
return response["choices"][0]["message"]["content"].strip()
|
| 37 |
|
| 38 |
-
with gr.Blocks() as demo:
|
| 39 |
gr.Markdown("## RecipEASY")
|
| 40 |
budget = gr.Slider(
|
| 41 |
minimum=0, # lowest value
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
+
theme = gr.themes.Ocean(
|
| 5 |
+
primary_hue="red",
|
| 6 |
+
secondary_hue="amber",
|
| 7 |
+
neutral_hue="amber",
|
| 8 |
+
)
|
| 9 |
|
| 10 |
client = InferenceClient("microsoft/phi-4")
|
| 11 |
|
|
|
|
| 40 |
)
|
| 41 |
return response["choices"][0]["message"]["content"].strip()
|
| 42 |
|
| 43 |
+
with gr.Blocks(theme=theme) as demo:
|
| 44 |
gr.Markdown("## RecipEASY")
|
| 45 |
budget = gr.Slider(
|
| 46 |
minimum=0, # lowest value
|