File size: 507 Bytes
189b09b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import os
import gradio as gr
def load_csv():
filename = 'table.html'
with open(filename, 'r', encoding="utf-8-sig") as f:
return f.read()
#return df.to_html(render_links=True)
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)
|