File size: 301 Bytes
b5ad754
092c7c9
b5ad754
092c7c9
 
080261d
 
b5ad754
092c7c9
 
080261d
 
b5ad754
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr
from rouge_score import rouge_scorer

def calc_rouge_score(summary, reference):
    score = 0.6
    text = "The score is %s" % (score)
    return text, score

iface = gr.Interface(
    fn=calc_rouge_score,
    inputs=["text", "text"],
    outputs=["text", "score"])
iface.launch()