Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
# 추론 API 클라이언트 설정
|
2 |
import logging
|
3 |
import os
|
4 |
from huggingface_hub import InferenceClient
|
@@ -35,7 +34,6 @@ def generate_response(user_input):
|
|
35 |
logging.debug(f'Messages to be sent to the model: {messages}')
|
36 |
|
37 |
response = hf_client.chat_completion(
|
38 |
-
model="CohereForAI/c4ai-command-r-plus",
|
39 |
messages=messages,
|
40 |
max_tokens=1000,
|
41 |
stream=True,
|
|
|
|
|
1 |
import logging
|
2 |
import os
|
3 |
from huggingface_hub import InferenceClient
|
|
|
34 |
logging.debug(f'Messages to be sent to the model: {messages}')
|
35 |
|
36 |
response = hf_client.chat_completion(
|
|
|
37 |
messages=messages,
|
38 |
max_tokens=1000,
|
39 |
stream=True,
|