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(x['entity_group'] for x in responce)
|
15 |
|
16 |
def query(request):
|
17 |
response = requests.post(API_URL, headers=headers, json=request)
|
@@ -25,8 +25,8 @@ with gr.Blocks() as demo:
|
|
25 |
|
26 |
Это демо-приожение демонстрирует работу модели.
|
27 |
|
28 |
-
- [
|
29 |
-
- [
|
30 |
|
31 |
""")
|
32 |
inp = gr.Textbox(placeholder="Введите текст на русском языке...", label="input")
|
|
|
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)
|
|
|
25 |
|
26 |
Это демо-приожение демонстрирует работу модели.
|
27 |
|
28 |
+
- [Модель](https://huggingface.co/disk0dancer/ruBert-base-finetuned-pos)
|
29 |
+
- [Проект](https://huggingface.co/spaces/disk0dancer/demo-rubert-base-finetuned-pos)
|
30 |
|
31 |
""")
|
32 |
inp = gr.Textbox(placeholder="Введите текст на русском языке...", label="input")
|