Spaces:
Sleeping
Sleeping
Update analytics/ai_assistant.py
Browse files
analytics/ai_assistant.py
CHANGED
|
@@ -141,7 +141,7 @@ def generate_ai_answer(question: str, df: pd.DataFrame, as_of_month: str = None,
|
|
| 141 |
)
|
| 142 |
|
| 143 |
client = _get_inference_client()
|
| 144 |
-
response = client(prompt, parameters={
|
| 145 |
"max_new_tokens": HF_MAX_TOKENS,
|
| 146 |
"temperature": HF_TEMPERATURE,
|
| 147 |
"top_k": 50,
|
|
|
|
| 141 |
)
|
| 142 |
|
| 143 |
client = _get_inference_client()
|
| 144 |
+
response = client.text_generation(prompt, parameters={
|
| 145 |
"max_new_tokens": HF_MAX_TOKENS,
|
| 146 |
"temperature": HF_TEMPERATURE,
|
| 147 |
"top_k": 50,
|