Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from langchain_community.llms import HuggingFaceEndpoint
|
|
| 4 |
|
| 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 |
|
|
@@ -17,7 +17,6 @@ def get_text():
|
|
| 17 |
input_text = st.text_input("Enter your question here: ", key="input")
|
| 18 |
return input_text
|
| 19 |
|
| 20 |
-
|
| 21 |
user_input=get_text()
|
| 22 |
response = load_answer(user_input)
|
| 23 |
|
|
|
|
| 4 |
|
| 5 |
#Taking question as input from user
|
| 6 |
def load_answer(question):
|
| 7 |
+
llm=HuggingFaceEndpoint(repo_id="mistralai/Mistral-7B-Instruct-v0.2",temperature = 0)
|
| 8 |
answer=llm.invoke(question)
|
| 9 |
return answer
|
| 10 |
|
|
|
|
| 17 |
input_text = st.text_input("Enter your question here: ", key="input")
|
| 18 |
return input_text
|
| 19 |
|
|
|
|
| 20 |
user_input=get_text()
|
| 21 |
response = load_answer(user_input)
|
| 22 |
|