Shankarm08 commited on
Commit
2e6df5a
1 Parent(s): 0e71eea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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} # Optional: Control response randomness
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
+