mohamedemam commited on
Commit
76f793b
·
1 Parent(s): 3b6a6ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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, recommended_word, temperature, top_p,numofseq):
22
- input_text = f"{recommended_word}: {context.lower()}"
 
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