Spaces:
Running
Running
kenghuoxiong
commited on
Commit
•
7e04ee5
1
Parent(s):
144ef01
Update app.py
Browse files
app.py
CHANGED
@@ -60,6 +60,8 @@ def qwen_api(user_message, top_p=0.9,temperature=0.7, system_message='', max_tok
|
|
60 |
yield response
|
61 |
return response
|
62 |
|
|
|
|
|
63 |
llm = ChatOpenAI(
|
64 |
model="meta-llama/Meta-Llama-3-8B-Instruct",
|
65 |
temperature=0.8,)
|
|
|
60 |
yield response
|
61 |
return response
|
62 |
|
63 |
+
os.environ["OPENAI_API_BASE"] = "https://api-inference.huggingface.co/v1/"
|
64 |
+
os.environ["OPENAI_API_KEY"] = TOKEN
|
65 |
llm = ChatOpenAI(
|
66 |
model="meta-llama/Meta-Llama-3-8B-Instruct",
|
67 |
temperature=0.8,)
|