Spaces:
Sleeping
Sleeping
BusinessDev
commited on
Commit
•
f76e66c
1
Parent(s):
d6e8010
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ generator = pipeline("text-generation", model=model_id)
|
|
6 |
|
7 |
# Define the function to process the input and generate text
|
8 |
def generate_text(prompt):
|
9 |
-
response = generator(prompt, max_length=
|
10 |
generated_text = response[0]['generated_text']
|
11 |
return generated_text
|
12 |
|
|
|
6 |
|
7 |
# Define the function to process the input and generate text
|
8 |
def generate_text(prompt):
|
9 |
+
response = generator(prompt, max_length=100, num_return_sequences=1)
|
10 |
generated_text = response[0]['generated_text']
|
11 |
return generated_text
|
12 |
|