loubnabnl HF Staff commited on
Commit
8421467
·
1 Parent(s): b677b78

update app

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -6,9 +6,10 @@ from transformers import pipeline
6
  title = "CodeParrot Generator 🦜"
7
  description = "This is a subspace to make code generation with [CodeParrot](https://huggingface.co/lvwerra/codeparrot), it is used in a larger [space](https://huggingface.co/spaces/loubnabnl/Code-generation-models-v1) for model comparison."
8
  example = [
9
- ["def count_words(filename):", 40, 0.6, 42],
10
  ["def print_hello_world():", 8, 0.6, 42],
11
- ["def get_file_size(filepath):", 8, 0.6, 42]]
 
 
12
  tokenizer = AutoTokenizer.from_pretrained("lvwerra/codeparrot")
13
  model = AutoModelForCausalLM.from_pretrained("lvwerra/codeparrot", low_cpu_mem_usage=True)
14
 
 
6
  title = "CodeParrot Generator 🦜"
7
  description = "This is a subspace to make code generation with [CodeParrot](https://huggingface.co/lvwerra/codeparrot), it is used in a larger [space](https://huggingface.co/spaces/loubnabnl/Code-generation-models-v1) for model comparison."
8
  example = [
 
9
  ["def print_hello_world():", 8, 0.6, 42],
10
+ ["def get_file_size(filepath):", 24, 0.6, 42],
11
+ ["def count_lines(filename):", 40, 0.6, 42],
12
+ ["def count_words(filename):", 40, 0.6, 42]]
13
  tokenizer = AutoTokenizer.from_pretrained("lvwerra/codeparrot")
14
  model = AutoModelForCausalLM.from_pretrained("lvwerra/codeparrot", low_cpu_mem_usage=True)
15