Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def answer_question_with_gpt(question):
|
|
25 |
if tokenizer.pad_token is None:
|
26 |
tokenizer.pad_token = tokenizer.eos_token
|
27 |
|
28 |
-
prompt = f"
|
29 |
inputs = tokenizer(prompt, return_tensors='pt', padding='max_length', truncation=True, max_length=512)
|
30 |
attention_mask = inputs['attention_mask']
|
31 |
input_ids = inputs['input_ids']
|
|
|
25 |
if tokenizer.pad_token is None:
|
26 |
tokenizer.pad_token = tokenizer.eos_token
|
27 |
|
28 |
+
prompt = f"Considering the follow: {df['tokenized']}. Question: {question} Resposta:"
|
29 |
inputs = tokenizer(prompt, return_tensors='pt', padding='max_length', truncation=True, max_length=512)
|
30 |
attention_mask = inputs['attention_mask']
|
31 |
input_ids = inputs['input_ids']
|