Spaces:
Sleeping
Sleeping
Commit
·
76f793b
1
Parent(s):
3b6a6ab
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,9 @@ recommended_words = [
|
|
18 |
]
|
19 |
|
20 |
# Function to generate questions and answers with configurable parameters
|
21 |
-
def generate_qa(context,
|
22 |
-
|
|
|
23 |
input_ids = tokenizer(input_text, max_length=400, truncation=True, padding="max_length", return_tensors='pt')
|
24 |
|
25 |
# Generate with configurable parameters
|
|
|
18 |
]
|
19 |
|
20 |
# Function to generate questions and answers with configurable parameters
|
21 |
+
def generate_qa(context, temperature, top_p,numofseq):
|
22 |
+
s=context.lower()
|
23 |
+
input_text = f"{s}"
|
24 |
input_ids = tokenizer(input_text, max_length=400, truncation=True, padding="max_length", return_tensors='pt')
|
25 |
|
26 |
# Generate with configurable parameters
|