Spaces:
Runtime error
Runtime error
Julián Ganzabal
commited on
Commit
•
991b4ef
1
Parent(s):
19e623c
translation
Browse files
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def get_translation_io():
|
4 |
+
with gr.Blocks() as demo:
|
5 |
+
with gr.Tab("Translate to Spanish"):
|
6 |
+
gr.load("gradio/helsinki_translation_en_es", src="spaces")
|
7 |
+
with gr.Tab("Translate to French"):
|
8 |
+
gr.load("abidlabs/en2fr", src="spaces")
|
9 |
+
return demo
|
10 |
+
|
11 |
+
get_translation_io().launch()
|