Spaces:
Build error
Build error
Update app.py
Browse files
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:")
|