vmalapaka commited on
Commit
3e09cb1
·
verified ·
1 Parent(s): edffe27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from langchain.llms import HuggingFaceEndpoint
6
  def load_answer(question):
7
  llm=HuggingFaceEndpoint(
8
  repo_id="mistralai/Mistral-7B-Instruct-v0.2",temperature=1.0)
9
- answer=llm(question)
10
  return answer
11
 
12
  st.set_page_config(page_title="Question and Answers", page_icon= ":robot:")
 
6
  def load_answer(question):
7
  llm=HuggingFaceEndpoint(
8
  repo_id="mistralai/Mistral-7B-Instruct-v0.2",temperature=1.0)
9
+ answer=llm.ivoke(question)
10
  return answer
11
 
12
  st.set_page_config(page_title="Question and Answers", page_icon= ":robot:")