Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def load_answer(question):
|
|
| 16 |
llm = HuggingFaceHub(
|
| 17 |
repo_id="mistralai/Mistral-7B-Instruct-v0.3", # Hugging Face model repo
|
| 18 |
huggingfacehub_api_token=HUGGINGFACE_API_TOKEN, # Pass your API token
|
| 19 |
-
model_kwargs={"temperature": 0} #
|
| 20 |
)
|
| 21 |
|
| 22 |
# Call the model with the user's question and get the response using .predict()
|
|
@@ -48,3 +48,4 @@ if submit and user_input:
|
|
| 48 |
st.write(response)
|
| 49 |
elif submit:
|
| 50 |
st.warning("Please enter a question.") # Warning for empty input
|
|
|
|
|
|
| 16 |
llm = HuggingFaceHub(
|
| 17 |
repo_id="mistralai/Mistral-7B-Instruct-v0.3", # Hugging Face model repo
|
| 18 |
huggingfacehub_api_token=HUGGINGFACE_API_TOKEN, # Pass your API token
|
| 19 |
+
model_kwargs={"temperature": 0.1} # Set a strictly positive temperature
|
| 20 |
)
|
| 21 |
|
| 22 |
# Call the model with the user's question and get the response using .predict()
|
|
|
|
| 48 |
st.write(response)
|
| 49 |
elif submit:
|
| 50 |
st.warning("Please enter a question.") # Warning for empty input
|
| 51 |
+
|