mohamedemam commited on
Commit
7948429
·
1 Parent(s): 35e7167

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ recommended_words = [
19
 
20
  # Function to generate questions and answers with configurable parameters
21
  def generate_qa(context, recommended_word, temperature, top_p):
22
- input_text = f"{recommended_word}: {context}"
23
  input_ids = tokenizer(input_text, max_length=400, truncation=True, padding="max_length", return_tensors='pt')
24
 
25
  # Generate with configurable parameters
 
19
 
20
  # Function to generate questions and answers with configurable parameters
21
  def generate_qa(context, recommended_word, temperature, top_p):
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