rouge-scorer / app.py
Heiko Hotz
Add application file
080261d
raw
history blame
301 Bytes
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()