Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,42 +21,10 @@ FIM_INDICATOR = "<FILL_HERE>"
|
|
| 21 |
|
| 22 |
FORMATS = """## Model Formats
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 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 |
-
"
|
| 137 |
"// Returns every other value in the array as a new array.\nfunction everyOther(arr) {",
|
| 138 |
-
"
|
| 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 |
|