anitalp commited on
Commit
5cfaef5
1 Parent(s): 4df0ba0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -6,13 +6,16 @@ from gradio.mix import Series
6
  description = "Reguetton spanish songs toxicity classification"
7
  title = "ES-EN Translation / Toxicity classification / EN-ES Translation"
8
 
9
- #translator_es = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-es-en")
10
  story_gen = gr.Interface.load("huggingface/SkolkovoInstitute/roberta_toxicity_classifier")
11
- #translator_en = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-en-es")
12
 
13
 
14
- interface = Series( story_gen, description = description,
15
  title = title
16
  )
17
 
18
- interface.launch()
 
 
 
 
6
  description = "Reguetton spanish songs toxicity classification"
7
  title = "ES-EN Translation / Toxicity classification / EN-ES Translation"
8
 
9
+ translator_es = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-es-en")
10
  story_gen = gr.Interface.load("huggingface/SkolkovoInstitute/roberta_toxicity_classifier")
11
+ translator_en = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-en-es")
12
 
13
 
14
+ interface = Series( translator_es, story_gen, translator_en, description = description,
15
  title = title
16
  )
17
 
18
+ interface.launch()
19
+
20
+
21
+