Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ df = pd.read_csv('anomalies.csv')
|
|
14 |
|
15 |
# Função para gerar resposta
|
16 |
def response(question):
|
17 |
-
prompt = f"Considerando os dados: {df.to_string(index=False)}. Pergunta: {question}
|
18 |
inputs = tokenizer(prompt, return_tensors='pt', padding='max_length', truncation=True, max_length=512)
|
19 |
attention_mask = inputs['attention_mask']
|
20 |
input_ids = inputs['input_ids']
|
|
|
14 |
|
15 |
# Função para gerar resposta
|
16 |
def response(question):
|
17 |
+
prompt = f"Considerando os dados: {df.to_string(index=False)}, onde 'ds' está em formato DateTime, 'real' é o valor da despesa e 'group' é o grupo da despesa. Pergunta: {question}"
|
18 |
inputs = tokenizer(prompt, return_tensors='pt', padding='max_length', truncation=True, max_length=512)
|
19 |
attention_mask = inputs['attention_mask']
|
20 |
input_ids = inputs['input_ids']
|