Browse Source
Merge pull request #1958 from doccano/fix/1241
Fix issue with the favicon not displaying
pull/1959/head
Hiroki Nakayama
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with
4 additions and
55 deletions
-
backend/config/urls.py
-
BIN
frontend/static/favicon.ico
-
frontend/static/formats/generic/upload/example.txt
-
frontend/static/formats/seq2seq/download/example.csv
-
frontend/static/formats/seq2seq/download/example.jsonl
-
frontend/static/formats/seq2seq/upload/example.csv
-
frontend/static/formats/seq2seq/upload/example.jsonl
-
frontend/static/formats/sequence_labeling/download/example.jsonl
-
frontend/static/formats/sequence_labeling/download/example_text.jsonl
-
frontend/static/formats/sequence_labeling/upload/example.conll.txt
-
frontend/static/formats/sequence_labeling/upload/example.jsonl
-
frontend/static/formats/text_classification/download/example.csv
-
frontend/static/formats/text_classification/download/example.jsonl
-
frontend/static/formats/text_classification/download/fastText.txt
-
frontend/static/formats/text_classification/upload/example.csv
-
frontend/static/formats/text_classification/upload/example.jsonl
-
frontend/static/formats/text_classification/upload/fastText.txt
-
BIN
frontend/static/images/feature1.png
-
BIN
frontend/static/images/feature2.png
-
BIN
frontend/static/images/feature3.png
-
BIN
frontend/static/images/hero.jpeg
-
BIN
frontend/static/images/ner_demo.png
-
BIN
frontend/static/images/vbanner.jpg
-
BIN
frontend/static/images/vuetify.png
-
BIN
frontend/static/v.png
|
|
@ -15,6 +15,7 @@ Including another URLconf |
|
|
|
""" |
|
|
|
import os |
|
|
|
import re |
|
|
|
from pathlib import Path |
|
|
|
|
|
|
|
from django.conf import settings |
|
|
|
from django.contrib import admin |
|
|
@ -36,6 +37,7 @@ schema_view = get_schema_view( |
|
|
|
|
|
|
|
urlpatterns = [] |
|
|
|
if settings.DEBUG or os.environ.get("STANDALONE", False): |
|
|
|
static_dir = Path(__file__).resolve().parent.parent / "client" / "dist" |
|
|
|
# For showing images and audios in the case of pip and Docker. |
|
|
|
urlpatterns.append( |
|
|
|
re_path( |
|
|
@ -44,6 +46,8 @@ if settings.DEBUG or os.environ.get("STANDALONE", False): |
|
|
|
{"document_root": settings.MEDIA_ROOT}, |
|
|
|
) |
|
|
|
) |
|
|
|
# For showing favicon on the case of pip and Docker. |
|
|
|
urlpatterns.append(path("favicon.ico", serve, {"document_root": static_dir, "path": "favicon.ico"})) |
|
|
|
|
|
|
|
urlpatterns += [ |
|
|
|
path("admin/", admin.site.urls), |
|
|
|
Before
|
After
|
|
|
|
|
@ -1,3 +0,0 @@ |
|
|
|
EU rejects German call to boycott British lamb. |
|
|
|
Peter Blackburn |
|
|
|
President Obama |
|
|
@ -1,4 +0,0 @@ |
|
|
|
id,text,label,user |
|
|
|
1,"Hello!","こんにちは!",1 |
|
|
|
2,"Good morning.","おはようございます。",1 |
|
|
|
3,"See you.","さようなら。",1 |
|
|
@ -1,3 +0,0 @@ |
|
|
|
{"id": 1, "text": "Hello!", "annotations": [{"id": 1, "label": "こんにちは!", "user": 1}]} |
|
|
|
{"id": 2, "text": "Good morning.", "annotations": [{"id": 2, "label": "おはようございます。", "user": 1}]} |
|
|
|
{"id": 3, "text": "See you.", "annotations": [{"id": 3, "label": "さようなら。", "user": 1}]} |
|
|
@ -1,4 +0,0 @@ |
|
|
|
text,label |
|
|
|
"Hello!","こんにちは!" |
|
|
|
"Good morning.","おはようございます。" |
|
|
|
"See you.","さようなら。" |
|
|
@ -1,3 +0,0 @@ |
|
|
|
{"text": "Hello!", "labels": ["こんにちは!"]} |
|
|
|
{"text": "Good morning.", "labels": ["おはようございます。"]} |
|
|
|
{"text": "See you.", "labels": ["さようなら。"]} |
|
|
@ -1,3 +0,0 @@ |
|
|
|
{"id": 1, "text": "EU rejects ...", "annotations": [{"id": 1, "label": 2, "start_offset": 0, "end_offset": 2, "user": 1}]} |
|
|
|
{"id": 2, "text": "Peter Blackburn", "annotations": [{"id": 2, "label": 1, "start_offset": 0, "end_offset": 15, "user": 1}]} |
|
|
|
{"id": 3, "text": "President Obama", "annotations": [{"id": 3, "label": 1, "start_offset": 10, "end_offset": 15, "user": 1}]} |
|
|
@ -1,3 +0,0 @@ |
|
|
|
{"id": 1, "text": "EU rejects ...", "labels": [[0,2,"ORG"], [11,17, "MISC"], [34,41,"ORG"]]} |
|
|
|
{"id": 2, "text": "Peter Blackburn", "labels": [[0, 15, "PERSON"]]} |
|
|
|
{"id": 3, "text": "President Obama", "labels": [[10, 15, "PERSON"]]} |
|
|
@ -1,11 +0,0 @@ |
|
|
|
EU B-ORG |
|
|
|
rejects O |
|
|
|
German B-MISC |
|
|
|
call O |
|
|
|
to O |
|
|
|
boycott O |
|
|
|
British B-MISC |
|
|
|
lamb O |
|
|
|
. O |
|
|
|
Peter B-PER |
|
|
|
Blackburn I-PER |
|
|
@ -1,3 +0,0 @@ |
|
|
|
{"text": "EU rejects German call to boycott British lamb.", "labels": [ [0, 2, "ORG"], [11, 17, "MISC"], ... ]} |
|
|
|
{"text": "Peter Blackburn", "labels": [ [0, 15, "PERSON"] ]} |
|
|
|
{"text": "President Obama", "labels": [ [10, 15, "PERSON"] ]} |
|
|
@ -1,4 +0,0 @@ |
|
|
|
id,text,label,user |
|
|
|
1,"Terrible customer service.",1,1 |
|
|
|
2,"Really great transaction.",2,1 |
|
|
|
3,"Great price.",2,1 |
|
|
@ -1,3 +0,0 @@ |
|
|
|
{"id": 1, "text": "Terrible customer service.", "annotations": [{"id": 1, "label": 1, "user": 1}]} |
|
|
|
{"id": 2, "text": "Really great transaction.", "annotations": [{"id": 2, "label": 2, "user": 1}]} |
|
|
|
{"id": 3, "text": "Great price.", "annotations": [{"id": 3, "label": 2, "user": 1}]} |
|
|
@ -1,2 +0,0 @@ |
|
|
|
__label__pet dog cat |
|
|
|
__label__car VW BMW |
|
|
@ -1,4 +0,0 @@ |
|
|
|
text,label |
|
|
|
"Terrible customer service.","negative" |
|
|
|
"Really great transaction.","positive" |
|
|
|
"Great price.","positive" |
|
|
@ -1,3 +0,0 @@ |
|
|
|
{"text": "Terrible customer service.", "labels": ["negative"]} |
|
|
|
{"text": "Really great transaction.", "labels": ["positive"]} |
|
|
|
{"text": "Great price.", "labels": ["positive"]} |
|
|
@ -1,2 +0,0 @@ |
|
|
|
__label__[label name] text |
|
|
|
__label_president Obama Trump |
Before
|
After
|
|
|
Width: 952
|
Height: 366
|
Size: 12 KiB
|
|
Before
|
After
|
|
|
Width: 723
|
Height: 467
|
Size: 2.1 KiB
|
|
Before
|
After
|
|
|
Width: 687
|
Height: 413
|
Size: 46 KiB
|
|
Before
|
After
|
|
|
Width: 2200
|
Height: 1457
|
Size: 650 KiB
|
|
Before
|
After
|
|
|
Width: 1582
|
Height: 711
|
Size: 172 KiB
|
|
Before
|
After
|
|
|
Width: 1920
|
Height: 1080
|
Size: 316 KiB
|
|
Before
|
After
|
|
|
Width: 197
|
Height: 225
|
Size: 2.4 KiB
|
|
Before
|
After
|
|
|
Width: 120
|
Height: 120
|
Size: 5.5 KiB
|
|