Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from langchain_community.llms import HuggingFaceEndpoint
|
|
| 5 |
#Taking question as input from user
|
| 6 |
def load_answer(question):
|
| 7 |
llm=HuggingFaceEndpoint(repo_id="mistralai/Mistral-7B-Instruct-v0.2")
|
| 8 |
-
answer=llm.invoke(question)
|
| 9 |
return answer
|
| 10 |
|
| 11 |
st.set_page_config(page_title="Question and Answers", page_icon= ":robot:")
|
|
|
|
| 5 |
#Taking question as input from user
|
| 6 |
def load_answer(question):
|
| 7 |
llm=HuggingFaceEndpoint(repo_id="mistralai/Mistral-7B-Instruct-v0.2")
|
| 8 |
+
answer=llm.invoke(**question)
|
| 9 |
return answer
|
| 10 |
|
| 11 |
st.set_page_config(page_title="Question and Answers", page_icon= ":robot:")
|