File size: 483 Bytes
82e2a45
 
3de3d63
 
82e2a45
0eed0eb
8cbc6a6
3de3d63
5cfaef5
3de3d63
 
 
e96c8d6
4df0ba0
3de3d63
 
5cfaef5
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21


import gradio as gr
from gradio.mix import Series

description = "Spanish songs toxicity classification"
title = "Pretrained models: ES-EN Translation Opus MT/ Roberta Toxicity classifier "

translator_es = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-es-en")
story_gen = gr.Interface.load("huggingface/SkolkovoInstitute/roberta_toxicity_classifier")   


interface = Series( translator_es, story_gen, description = description,
      title = title
)

interface.launch()