Update app.py
Browse files
app.py
CHANGED
|
@@ -31,17 +31,16 @@ def respond(message, history, budget, have_items, allergies):
|
|
| 31 |
# Call the model
|
| 32 |
response = client.chat_completion(
|
| 33 |
messages=messages,
|
| 34 |
-
max_tokens=
|
| 35 |
)
|
| 36 |
return response["choices"][0]["message"]["content"].strip()
|
| 37 |
|
| 38 |
with gr.Blocks() as demo:
|
| 39 |
-
gr.Markdown("##
|
| 40 |
with gr.Tab("Your resources: "):
|
| 41 |
budget = gr.Slider(
|
| 42 |
minimum=0, # lowest value
|
| 43 |
maximum=100, # highest value
|
| 44 |
-
value=50, # default starting value
|
| 45 |
step=1, # increment step
|
| 46 |
label="Enter Budget:"
|
| 47 |
)
|
|
|
|
| 31 |
# Call the model
|
| 32 |
response = client.chat_completion(
|
| 33 |
messages=messages,
|
| 34 |
+
max_tokens=500
|
| 35 |
)
|
| 36 |
return response["choices"][0]["message"]["content"].strip()
|
| 37 |
|
| 38 |
with gr.Blocks() as demo:
|
| 39 |
+
gr.Markdown("## RecipEASY")
|
| 40 |
with gr.Tab("Your resources: "):
|
| 41 |
budget = gr.Slider(
|
| 42 |
minimum=0, # lowest value
|
| 43 |
maximum=100, # highest value
|
|
|
|
| 44 |
step=1, # increment step
|
| 45 |
label="Enter Budget:"
|
| 46 |
)
|