Manasa1 commited on
Commit
f807b07
·
verified ·
1 Parent(s): 2f4a891

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def generate_tweet(input_question):
13
  # Format the prompt
14
  prompt = f"Question: {input_question} Answer:"
15
  # Generate the output
16
- output = generator(prompt, max_length=100, num_return_sequences=1, temperature=0.9, top_p=0.9)
17
  # Extract and return the generated text
18
  return output[0]['generated_text']
19
 
 
13
  # Format the prompt
14
  prompt = f"Question: {input_question} Answer:"
15
  # Generate the output
16
+ output = generator(prompt, max_length=250, num_return_sequences=1, temperature=0.9, top_p=0.9)
17
  # Extract and return the generated text
18
  return output[0]['generated_text']
19