pratikshahp commited on
Commit
97f528e
·
verified ·
1 Parent(s): 5ea9762

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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(input_message)
32
- return response.content
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: