File size: 651 Bytes
189b09b
 
 
fe0a717
 
 
 
189b09b
 
 
 
 
 
 
 
 
 
4a5ff2f
189b09b
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
import gradio as gr

model_list = ['utrobinmv/t5_translate_en_ru_zh_large_1024_v2',
              'utrobinmv/t5_translate_en_ru_zh_large_1024',  
              'utrobinmv/t5_translate_en_ru_zh_small_1024']

def load_csv():
    filename = 'table.html'
    with open(filename, 'r', encoding="utf-8-sig") as f:
        return f.read()
    return ''

iface = gr.Interface(
    fn=load_csv,
    inputs=None,
    outputs="html",
    title="NTREX dataset Benchmark!",
    description="Benchmark translation to TREX dataset for ru, en, zh languages. Dataset: https://github.com/MicrosoftTranslator/NTREX",
    live=True
)

iface.launch(share=False)