GenAICoder commited on
Commit
4b8d131
·
verified ·
1 Parent(s): 9d1ccce

Update analytics/ai_assistant.py

Browse files
Files changed (1) hide show
  1. analytics/ai_assistant.py +1 -1
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,