Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,11 +25,10 @@ def suggest_recipes(ingredients):
|
|
25 |
f"preparation time, and list step-by-step directions."
|
26 |
)
|
27 |
# Wrap the prompt in a HumanMessage object
|
28 |
-
input_message = HumanMessage(content=prompt)
|
29 |
|
30 |
# Use the HuggingFaceEndpoint model to generate a response
|
31 |
-
response = llm(
|
32 |
-
return response
|
33 |
|
34 |
# Gradio interface
|
35 |
with gr.Blocks() as app:
|
|
|
25 |
f"preparation time, and list step-by-step directions."
|
26 |
)
|
27 |
# Wrap the prompt in a HumanMessage object
|
|
|
28 |
|
29 |
# Use the HuggingFaceEndpoint model to generate a response
|
30 |
+
response = llm(prompt)
|
31 |
+
return response
|
32 |
|
33 |
# Gradio interface
|
34 |
with gr.Blocks() as app:
|