Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,6 +31,22 @@ def hsd_turkish(text_in):
|
|
| 31 |
return sentiment_tr
|
| 32 |
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
iface = gr.Interface(
|
| 35 |
fn=hsd_turkish,
|
| 36 |
inputs=gr.Textbox(lines=2, placeholder="Enter Text here:"),
|
|
|
|
| 31 |
return sentiment_tr
|
| 32 |
|
| 33 |
|
| 34 |
+
with gr.Blocks() as demo:
|
| 35 |
+
with gr.Tab("English to Korean"):
|
| 36 |
+
gr.Interface(
|
| 37 |
+
fn=translate_en_ko,
|
| 38 |
+
inputs='textbox',
|
| 39 |
+
outputs='textbox',
|
| 40 |
+
)
|
| 41 |
+
with gr.Tab("Korean to English"):
|
| 42 |
+
gr.Interface(
|
| 43 |
+
fn=translate_ko_en,
|
| 44 |
+
inputs='textbox',
|
| 45 |
+
outputs='textbox',
|
| 46 |
+
)
|
| 47 |
+
|
| 48 |
+
demo.launch()
|
| 49 |
+
|
| 50 |
iface = gr.Interface(
|
| 51 |
fn=hsd_turkish,
|
| 52 |
inputs=gr.Textbox(lines=2, placeholder="Enter Text here:"),
|