Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ AUTH_TOKEN = os.getenv("AUTH_TOKEN")
|
|
11 |
headers = {"Authorization": f"Bearer {AUTH_TOKEN}"}
|
12 |
|
13 |
def postproccess(responce):
|
14 |
-
return ' '.join(
|
15 |
|
16 |
def query(request):
|
17 |
response = requests.post(API_URL, headers=headers, json=request)
|
@@ -23,7 +23,7 @@ with gr.Blocks() as demo:
|
|
23 |
"""
|
24 |
# Модель для определения скелетной структуры текста
|
25 |
|
26 |
-
Это
|
27 |
|
28 |
- [Модель](https://huggingface.co/disk0dancer/ruBert-base-finetuned-pos)
|
29 |
- [Проект](https://huggingface.co/spaces/disk0dancer/demo-rubert-base-finetuned-pos)
|
|
|
11 |
headers = {"Authorization": f"Bearer {AUTH_TOKEN}"}
|
12 |
|
13 |
def postproccess(responce):
|
14 |
+
return ' '.join(x['entity_group'] for x in responce)
|
15 |
|
16 |
def query(request):
|
17 |
response = requests.post(API_URL, headers=headers, json=request)
|
|
|
23 |
"""
|
24 |
# Модель для определения скелетной структуры текста
|
25 |
|
26 |
+
Это веб-приожение демонстрирует работу модели.
|
27 |
|
28 |
- [Модель](https://huggingface.co/disk0dancer/ruBert-base-finetuned-pos)
|
29 |
- [Проект](https://huggingface.co/spaces/disk0dancer/demo-rubert-base-finetuned-pos)
|