Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ model2.load_state_dict(torch.load('gpt_124M_1.pth', map_location=torch.device(de
|
|
19 |
|
20 |
# Define generation function
|
21 |
def generate_text(prompt, max_length=50, num_return_sequences=10):
|
22 |
-
"""
|
23 |
|
24 |
Args:
|
25 |
prompt (str): The starting text for the generation.
|
|
|
19 |
|
20 |
# Define generation function
|
21 |
def generate_text(prompt, max_length=50, num_return_sequences=10):
|
22 |
+
""" Text using the GPT-2 model based on the provided prompt and user-specified parameters.
|
23 |
|
24 |
Args:
|
25 |
prompt (str): The starting text for the generation.
|