ArunAIML commited on
Commit
5ffcda6
·
1 Parent(s): a23d81b

bug in gpt function issue

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ model_id = "gpt2-large"
5
 
6
  pipe = pipeline("text-generation", model=model_id)
7
 
8
- def gpt(prompt):
9
  return pipe(prompt, top_k=top_k, penalty_alpha=penalty_alpha)[0]["generated_text"]
10
 
11
  gr.Interface(
 
5
 
6
  pipe = pipeline("text-generation", model=model_id)
7
 
8
+ def gpt(prompt, top_k, penalty_alpha):
9
  return pipe(prompt, top_k=top_k, penalty_alpha=penalty_alpha)[0]["generated_text"]
10
 
11
  gr.Interface(