Kartheekb7 commited on
Commit
a2fe357
1 Parent(s): c895cc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,8 +44,8 @@ def response(message = "Hello, I'm a language model", num_return_sequences = 5,m
44
 
45
 
46
  # Function to generate text
47
- def generate_text(prompt, top_k, max_return_sequences, max_tokens):
48
- ans = response(message = prompt, num_return_sequences = max_return_sequences,max_length = max_tokens,top_k = top_k)
49
 
50
 
51
  return ans
 
44
 
45
 
46
  # Function to generate text
47
+ def generate_text(prompt, top_k, return_sequences, max_tokens):
48
+ ans = response(message = prompt, num_return_sequences = return_sequences,max_length = max_tokens,top_k = top_k)
49
 
50
 
51
  return ans