Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,8 @@ parent_document_retrieve = load_the_parent_document_retrieve()
|
|
24 |
# tokenizer = AutoTokenizer.from_pretrained("ShynBui/vie_qa", token=os.environ.get("HF_TOKEN"))
|
25 |
# model = AutoModelForQuestionAnswering.from_pretrained("ShynBui/vie_qa", token=os.environ.get("HF_TOKEN"))
|
26 |
|
27 |
-
llm = ChatOpenAI(model="gpt-
|
28 |
-
llm_long = ChatOpenAI(model="gpt-
|
29 |
|
30 |
|
31 |
def greet3(quote, history):
|
|
|
24 |
# tokenizer = AutoTokenizer.from_pretrained("ShynBui/vie_qa", token=os.environ.get("HF_TOKEN"))
|
25 |
# model = AutoModelForQuestionAnswering.from_pretrained("ShynBui/vie_qa", token=os.environ.get("HF_TOKEN"))
|
26 |
|
27 |
+
llm = ChatOpenAI(model="gpt-4o-mini", temperature=1,openai_api_key=os.environ["OPENAI_API_KEY"])
|
28 |
+
llm_long = ChatOpenAI(model="gpt-4o-mini", temperature=1,max_tokens=1024, openai_api_key=os.environ["OPENAI_API_KEY"])
|
29 |
|
30 |
|
31 |
def greet3(quote, history):
|