loubnabnl HF staff commited on
Commit
aafbd68
·
1 Parent(s): 71b0ec2

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ title = "InCoder Generator"
7
  description = "This is a subspace to make code generation with [InCoder](https://huggingface.co/facebook/incoder-6B), 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():", "Sample", 8, 0.6, 42],
11
- ["def get_file_size(filepath):", "Sample", 22, 0.6, 42]]
12
  tokenizer = AutoTokenizer.from_pretrained("facebook/incoder-1B")
13
  model = AutoModelForCausalLM.from_pretrained("facebook/incoder-1B", low_cpu_mem_usage=True)
14
 
 
7
  description = "This is a subspace to make code generation with [InCoder](https://huggingface.co/facebook/incoder-6B), 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):", 22, 0.6, 42]]
12
  tokenizer = AutoTokenizer.from_pretrained("facebook/incoder-1B")
13
  model = AutoModelForCausalLM.from_pretrained("facebook/incoder-1B", low_cpu_mem_usage=True)
14