cloixai commited on
Commit
c418074
·
1 Parent(s): 4aa3791

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -37
app.py CHANGED
@@ -21,42 +21,10 @@ FIM_INDICATOR = "<FILL_HERE>"
21
 
22
  FORMATS = """## Model Formats
23
 
24
- The model is pretrained on code and is formatted with special tokens in addition to the pure code data,\
25
- such as prefixes specifying the source of the file or tokens separating code from a commit message.\
26
- Use these templates to explore the model's capacities:
27
 
28
- ### 1. Prefixes 🏷️
29
- For pure code files, use any combination of the following prefixes:
30
-
31
- ```
32
- <reponame>REPONAME<filename>FILENAME<gh_stars>STARS\ncode<|endoftext|>
33
- ```
34
- STARS can be one of: 0, 1-10, 10-100, 100-1000, 1000+
35
-
36
- ### 2. Commits 💾
37
- The commits data is formatted as follows:
38
-
39
- ```
40
- <commit_before>code<commit_msg>text<commit_after>code<|endoftext|>
41
- ```
42
-
43
- ### 3. Jupyter Notebooks 📓
44
- The model is trained on Jupyter notebooks as Python scripts and structured formats like:
45
-
46
- ```
47
- <start_jupyter><jupyter_text>text<jupyter_code>code<jupyter_output>output<jupyter_text>
48
- ```
49
-
50
- ### 4. Issues 🐛
51
- We also trained on GitHub issues using the following formatting:
52
- ```
53
- <issue_start><issue_comment>text<issue_comment>...<issue_closed>
54
- ```
55
-
56
- ### 5. Fill-in-the-middle 🧩
57
- Fill in the middle requires rearranging the model inputs. The playground handles this for you - all you need is to specify where to fill:
58
- ```
59
- code before<FILL_HERE>code after
60
  ```
61
  """
62
 
@@ -133,9 +101,9 @@ def generate(
133
 
134
 
135
  examples = [
136
- "X_train, y_train, X_test, y_test = train_test_split(X, y, test_size=0.1)\n\n# Train a logistic regression model, predict the labels on the test set and compute the accuracy score",
137
  "// Returns every other value in the array as a new array.\nfunction everyOther(arr) {",
138
- "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",
139
  ]
140
 
141
 
 
21
 
22
  FORMATS = """## Model Formats
23
 
24
+ Bu Model BigCode Ekibi tarafından Geliştirilmiştir
25
+ Webliyy Teknoloji olarak Kendi araçlarımıza entegre ettik
26
+ ve Türkçe olarak kullanılabilmesini sağladık
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  ```
29
  """
30
 
 
101
 
102
 
103
  examples = [
104
+ "Design a simple web page using only HTML",
105
  "// Returns every other value in the array as a new array.\nfunction everyOther(arr) {",
106
+ "Send request to web server using python",
107
  ]
108
 
109