Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1482,7 +1482,7 @@ def run_chatbot(n_clicks, n_submit, user_input, chat_history, array_value):
|
|
| 1482 |
#llm = HuggingFaceEndpoint(
|
| 1483 |
# repo_id=repo_id, task="text2text-generation", max_new_tokens=8000, temperature=0.7, streaming=True
|
| 1484 |
#)
|
| 1485 |
-
llm = ChatOpenAI(model_name="
|
| 1486 |
model_output = ""
|
| 1487 |
chain = prompt | llm | StrOutputParser()
|
| 1488 |
for s in chain.stream({"question":"D'après le contexte, " + user_input,"context":context_p}):
|
|
|
|
| 1482 |
#llm = HuggingFaceEndpoint(
|
| 1483 |
# repo_id=repo_id, task="text2text-generation", max_new_tokens=8000, temperature=0.7, streaming=True
|
| 1484 |
#)
|
| 1485 |
+
llm = ChatOpenAI(model_name="openai/gpt-oss-120b", base_url=os.environ['BASEURL_RENNES_API_KEY'], api_key=os.environ['ENDPOINT_RENNES_API_KEY'])
|
| 1486 |
model_output = ""
|
| 1487 |
chain = prompt | llm | StrOutputParser()
|
| 1488 |
for s in chain.stream({"question":"D'après le contexte, " + user_input,"context":context_p}):
|