thomwolf HF staff commited on
Commit
3794702
1 Parent(s): 8c4290e

Update fibonacci example

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ def generate(prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition
131
 
132
  examples = [
133
  "def print_hello_world():",
134
- "def fibonacci(n):",
135
  "class TransformerDecoder(nn.Module):",
136
  "class ComplexNumbers:"
137
  ]
 
131
 
132
  examples = [
133
  "def print_hello_world():",
134
+ 'def fibonacci(n: int) -> int:\n """ Compute the n-th Fibonacci number. """',
135
  "class TransformerDecoder(nn.Module):",
136
  "class ComplexNumbers:"
137
  ]