loubnabnl HF Staff commited on
Commit
144800e
·
1 Parent(s): 5cea6a1

update app

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from transformers import pipeline
5
 
6
  title = "CodeParrot Generator"
7
  description = "This is a subspace to make code generation with CodeParrot, it is used in a larger space for model comparison."
8
- example = "def print_hello_world():\n \"""Print 'Hello world' \""" "
9
  tokenizer = AutoTokenizer.from_pretrained("lvwerra/codeparrot")
10
  model = AutoModelForCausalLM.from_pretrained("lvwerra/codeparrot")
11
 
 
5
 
6
  title = "CodeParrot Generator"
7
  description = "This is a subspace to make code generation with CodeParrot, it is used in a larger space for model comparison."
8
+ example = [["def print_hello_world():\n \"""Print 'Hello world' \""" "]]
9
  tokenizer = AutoTokenizer.from_pretrained("lvwerra/codeparrot")
10
  model = AutoModelForCausalLM.from_pretrained("lvwerra/codeparrot")
11