Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,19 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
|
5 |
first = gr.Interface.load("Helsinki-NLP/opus-mt-tl-en")
|
6 |
second = gr.Interface.load("Helsinki-NLP/opus-mt-en-ceb")
|
7 |
-
test = gr.Series(textgen, tts)
|
8 |
-
return test
|
9 |
|
10 |
-
iface = gr.Interface(
|
11 |
-
fn=trnslt,
|
12 |
-
inputs='text',
|
13 |
-
outputs='text',
|
14 |
-
examples=[["Magandang Umaga"],["Magandang gabi"],["Masarap ang Adobo"],["Kumusta ka na"],["Magandang umaga"]],
|
15 |
-
theme="darkpeach",
|
16 |
-
css=".footer{display:none !important}",
|
17 |
-
)
|
18 |
|
19 |
-
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
|
5 |
first = gr.Interface.load("Helsinki-NLP/opus-mt-tl-en")
|
6 |
second = gr.Interface.load("Helsinki-NLP/opus-mt-en-ceb")
|
7 |
+
test = gr.Series(textgen, tts).launch()
|
|
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
|