disk0dancer commited on
Commit
7cdcd70
·
verified ·
1 Parent(s): 82a1da3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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")