SeemG commited on
Commit
35694d2
·
verified ·
1 Parent(s): 266231c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- """ Generates humorous 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.
 
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.