Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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 |
|