Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,9 @@ os.environ["HUGGINGFACEHUB_API_TOKEN"] = "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"
|
|
13 |
|
14 |
#Function to return the response
|
15 |
def load_answer(question):
|
16 |
-
|
17 |
-
|
18 |
-
repo_id="mistralai/Mistral-7B-Instruct-v0.3") # Model link : https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3
|
19 |
|
20 |
answer=llm.invoke(question)
|
21 |
return answer
|
|
|
13 |
|
14 |
#Function to return the response
|
15 |
def load_answer(question):
|
16 |
+
llm = OpenAI(model_name="gpt-3.5-turbo-instruct",temperature=0)
|
17 |
+
# llm = HuggingFaceEndpoint(
|
18 |
+
#repo_id="mistralai/Mistral-7B-Instruct-v0.3") # Model link : https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3
|
19 |
|
20 |
answer=llm.invoke(question)
|
21 |
return answer
|