lvwerra HF staff commited on
Commit
52d520b
1 Parent(s): 36c12a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -82,6 +82,7 @@ def generate(
82
  if any([end_token in response.token.text for end_token in [EOS_STRING, EOT_STRING]]):
83
  if fim_mode:
84
  output += suffix
 
85
  else:
86
  return output
87
  else:
@@ -96,7 +97,7 @@ examples = [
96
  "// Returns every other value in the array as a new array.\nfunction everyOther(arr) {",
97
  "Poor English: She no went to the market. Corrected English:",
98
  "def alternating(list1, list2):\n results = []\n for i in range(min(len(list1), len(list2))):\n results.append(list1[i])\n results.append(list2[i])\n if len(list1) > len(list2):\n <FILL_HERE>\n else:\n results.extend(list2[i+1:])\n return results",
99
- "def remove_non_ascii(s: str) -> str:\n \"\"\" <FILL_ME>\n return result",
100
  ]
101
 
102
 
 
82
  if any([end_token in response.token.text for end_token in [EOS_STRING, EOT_STRING]]):
83
  if fim_mode:
84
  output += suffix
85
+ print("output", output)
86
  else:
87
  return output
88
  else:
 
97
  "// Returns every other value in the array as a new array.\nfunction everyOther(arr) {",
98
  "Poor English: She no went to the market. Corrected English:",
99
  "def alternating(list1, list2):\n results = []\n for i in range(min(len(list1), len(list2))):\n results.append(list1[i])\n results.append(list2[i])\n if len(list1) > len(list2):\n <FILL_HERE>\n else:\n results.extend(list2[i+1:])\n return results",
100
+ "def remove_non_ascii(s: str) -> str:\n \"\"\" <FILL_ME>\nprint(remove_non_ascii("afkdj$$("))",
101
  ]
102
 
103