Spaces:
Running
Running
nyuuzyou
commited on
Commit
•
ae2bb64
1
Parent(s):
a52537d
examples
Browse files- .pre-commit-config.yaml +0 -55
- .vscode/settings.json +0 -21
- LICENSE +0 -21
- README.md +4 -4
- app.py +9 -32
- geitje-logo.jpg +0 -0
.pre-commit-config.yaml
DELETED
@@ -1,55 +0,0 @@
|
|
1 |
-
repos:
|
2 |
-
- repo: https://github.com/pre-commit/pre-commit-hooks
|
3 |
-
rev: v4.4.0
|
4 |
-
hooks:
|
5 |
-
- id: check-executables-have-shebangs
|
6 |
-
- id: check-json
|
7 |
-
- id: check-merge-conflict
|
8 |
-
- id: check-shebang-scripts-are-executable
|
9 |
-
- id: check-toml
|
10 |
-
- id: check-yaml
|
11 |
-
- id: end-of-file-fixer
|
12 |
-
- id: mixed-line-ending
|
13 |
-
args: ["--fix=lf"]
|
14 |
-
- id: requirements-txt-fixer
|
15 |
-
- id: trailing-whitespace
|
16 |
-
- repo: https://github.com/myint/docformatter
|
17 |
-
rev: v1.7.5
|
18 |
-
hooks:
|
19 |
-
- id: docformatter
|
20 |
-
args: ["--in-place"]
|
21 |
-
- repo: https://github.com/pycqa/isort
|
22 |
-
rev: 5.12.0
|
23 |
-
hooks:
|
24 |
-
- id: isort
|
25 |
-
args: ["--profile", "black"]
|
26 |
-
- repo: https://github.com/pre-commit/mirrors-mypy
|
27 |
-
rev: v1.5.1
|
28 |
-
hooks:
|
29 |
-
- id: mypy
|
30 |
-
args: ["--ignore-missing-imports"]
|
31 |
-
additional_dependencies:
|
32 |
-
["types-python-slugify", "types-requests", "types-PyYAML"]
|
33 |
-
- repo: https://github.com/psf/black
|
34 |
-
rev: 23.9.1
|
35 |
-
hooks:
|
36 |
-
- id: black
|
37 |
-
language_version: python3.10
|
38 |
-
args: ["--line-length", "119"]
|
39 |
-
- repo: https://github.com/kynan/nbstripout
|
40 |
-
rev: 0.6.1
|
41 |
-
hooks:
|
42 |
-
- id: nbstripout
|
43 |
-
args:
|
44 |
-
[
|
45 |
-
"--extra-keys",
|
46 |
-
"metadata.interpreter metadata.kernelspec cell.metadata.pycharm",
|
47 |
-
]
|
48 |
-
- repo: https://github.com/nbQA-dev/nbQA
|
49 |
-
rev: 1.7.0
|
50 |
-
hooks:
|
51 |
-
- id: nbqa-black
|
52 |
-
- id: nbqa-pyupgrade
|
53 |
-
args: ["--py37-plus"]
|
54 |
-
- id: nbqa-isort
|
55 |
-
args: ["--float-to-top"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.vscode/settings.json
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"[python]": {
|
3 |
-
"editor.defaultFormatter": "ms-python.black-formatter",
|
4 |
-
"editor.formatOnType": true,
|
5 |
-
"editor.codeActionsOnSave": {
|
6 |
-
"source.organizeImports": true
|
7 |
-
}
|
8 |
-
},
|
9 |
-
"black-formatter.args": [
|
10 |
-
"--line-length=119"
|
11 |
-
],
|
12 |
-
"isort.args": ["--profile", "black"],
|
13 |
-
"flake8.args": [
|
14 |
-
"--max-line-length=119"
|
15 |
-
],
|
16 |
-
"ruff.args": [
|
17 |
-
"--line-length=119"
|
18 |
-
],
|
19 |
-
"editor.formatOnSave": true,
|
20 |
-
"files.insertFinalNewline": true
|
21 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
MIT License
|
2 |
-
|
3 |
-
Copyright (c) 2023 hysts
|
4 |
-
|
5 |
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
-
of this software and associated documentation files (the "Software"), to deal
|
7 |
-
in the Software without restriction, including without limitation the rights
|
8 |
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
-
copies of the Software, and to permit persons to whom the Software is
|
10 |
-
furnished to do so, subject to the following conditions:
|
11 |
-
|
12 |
-
The above copyright notice and this permission notice shall be included in all
|
13 |
-
copies or substantial portions of the Software.
|
14 |
-
|
15 |
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
-
SOFTWARE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -6,9 +6,9 @@ colorTo: blue
|
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.39.0
|
8 |
app_file: app.py
|
9 |
-
pinned:
|
10 |
-
license:
|
11 |
-
suggested_hardware:
|
12 |
---
|
13 |
|
14 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.39.0
|
8 |
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
license: cc0-1.0
|
11 |
+
suggested_hardware: cpu-basic
|
12 |
---
|
13 |
|
14 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -63,9 +63,7 @@ chat_interface = gr.ChatInterface(
|
|
63 |
chatbot=gr.Chatbot(height=450,
|
64 |
label="utter-project/EuroLLM-1.7B-Instruct",
|
65 |
show_share_button=True,
|
66 |
-
# avatar_images=(None, 'geitje-logo.jpg')
|
67 |
),
|
68 |
-
# textbox=gr.Textbox(value="Typ een bericht…"),
|
69 |
cache_examples=False,
|
70 |
additional_inputs=[
|
71 |
gr.Slider(
|
@@ -105,40 +103,19 @@ chat_interface = gr.ChatInterface(
|
|
105 |
),
|
106 |
],
|
107 |
examples=[
|
108 |
-
["
|
109 |
-
["
|
110 |
-
["
|
111 |
-
["
|
112 |
-
["
|
113 |
-
["Wat is het belang van open source taalmodellen?"],
|
114 |
-
["""```
|
115 |
-
Wortelverkopers krijgen miljoenenboete voor ongeoorloofd samenspannen
|
116 |
-
Door onze economieredactie
|
117 |
-
14 dec 2023 om 12:58
|
118 |
-
Update: 20 uur geleden
|
119 |
-
162 reacties
|
120 |
-
|
121 |
-
Delen
|
122 |
-
Toezichthouder ACM heeft een Nederlands wortelkartel aangepakt. Vier telers en verkopers van wortelen krijgen samen ruim 2,5 miljoen euro boete vanwege ongeoorloofde afspraken over het verdelen van de markt.
|
123 |
-
Het gaat om telers en verkopers Laarakker, VanRijsingen, Veco en Verduyn. De vier bedrijven verkopen waspeen en Parijse wortelen aan conserven- en diepvriesfabrikanten in Nederland, België en Duitsland. Waspeen wordt vaak verkocht in potten of blikken in een mix met erwtjes.
|
124 |
-
|
125 |
-
De vier bedrijven hadden in 2018 afgesproken dat ze tien jaar lang niet overal de concurrentie met elkaar zouden aangaan. Zo zou Veco tien jaar lang geen waspeen telen of verkopen. Daarnaast zouden Laarakker, VanRijsingen en Verduyn juist de Parijse wortelen links laten liggen.
|
126 |
-
|
127 |
-
Ook betaalden de andere wortelverkopers Veco ter compensatie van de afspraken. Laarakker en Veco maakten ook nog afzonderlijke afspraken over de levering van Parijse wortelen aan Duitse klanten.
|
128 |
-
|
129 |
-
Zulke afspraken zijn verboden. Als concurrentie door die samenwerking achterwege blijft en er dus sprake is van een kartel, betalen kopers mogelijk een hogere prijs, stelt de ACM.
|
130 |
-
|
131 |
-
Twee van de wortelbedrijven werkten mee door meer informatie over de ongeoorloofde afspraken te delen met de toezichthouder. Daardoor kregen zij een lagere boete.
|
132 |
-
```
|
133 |
-
Vat bovenstaand artikel samen"""]
|
134 |
],
|
135 |
title="utter-project/EuroLLM-1.7B-Instruct",
|
136 |
description="""utter-project/EuroLLM-1.7B-Instruct quick demo""",
|
137 |
-
submit_btn="
|
138 |
stop_btn="Stop",
|
139 |
-
retry_btn="🔄
|
140 |
-
undo_btn="↩️
|
141 |
-
clear_btn="🗑️
|
142 |
)
|
143 |
|
144 |
with gr.Blocks(css="style.css") as demo:
|
|
|
63 |
chatbot=gr.Chatbot(height=450,
|
64 |
label="utter-project/EuroLLM-1.7B-Instruct",
|
65 |
show_share_button=True,
|
|
|
66 |
),
|
|
|
67 |
cache_examples=False,
|
68 |
additional_inputs=[
|
69 |
gr.Slider(
|
|
|
103 |
),
|
104 |
],
|
105 |
examples=[
|
106 |
+
["Describe the significance of the Eiffel Tower in French culture and history."],
|
107 |
+
["Что такое 'загадочная русская душа' и как это понятие отражается в русской литературе?"], # Russian: What is the "mysterious Russian soul" and how is this concept reflected in Russian literature?
|
108 |
+
["Jakie są najbardziej znane polskie tradycje bożonarodzeniowe?"], # Polish: What are the most well-known Polish Christmas traditions?
|
109 |
+
["Welche Rolle spielte die Hanse im mittelalterlichen Europa?"], # German: What role did the Hanseatic League play in medieval Europe?
|
110 |
+
["日本の茶道の精神と作法について説明してください。"] # Japanese: Please explain the spirit and etiquette of Japanese tea ceremony.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
],
|
112 |
title="utter-project/EuroLLM-1.7B-Instruct",
|
113 |
description="""utter-project/EuroLLM-1.7B-Instruct quick demo""",
|
114 |
+
submit_btn="Generate",
|
115 |
stop_btn="Stop",
|
116 |
+
retry_btn="🔄 Retry",
|
117 |
+
undo_btn="↩️ Undo",
|
118 |
+
clear_btn="🗑️ Clear",
|
119 |
)
|
120 |
|
121 |
with gr.Blocks(css="style.css") as demo:
|
geitje-logo.jpg
DELETED
Binary file (41.8 kB)
|
|