Spaces:
Running
Running
lodhrangpt
commited on
Commit
•
87cceb8
1
Parent(s):
a7cc277
Update app.py
Browse files
app.py
CHANGED
@@ -15,25 +15,13 @@ def translate_text(text, target_language):
|
|
15 |
|
16 |
# Define available languages
|
17 |
languages = {
|
18 |
-
"
|
19 |
-
"
|
20 |
-
"
|
21 |
-
"
|
22 |
-
"
|
23 |
-
"japanese": "Japanese",
|
24 |
-
"korean": "Korean",
|
25 |
-
"italian": "Italian",
|
26 |
-
"portuguese": "Portuguese",
|
27 |
-
"russian": "Russian",
|
28 |
-
"hindi": "Hindi",
|
29 |
-
"arabic": "Arabic",
|
30 |
-
"dutch": "Dutch",
|
31 |
-
"turkish": "Turkish",
|
32 |
-
"greek": "Greek",
|
33 |
-
"urdu": "Urdu"
|
34 |
}
|
35 |
|
36 |
-
|
37 |
# Set up the Gradio interface with a submit button and side-by-side layout
|
38 |
with gr.Blocks() as iface:
|
39 |
gr.Markdown("# Text Translator")
|
|
|
15 |
|
16 |
# Define available languages
|
17 |
languages = {
|
18 |
+
"fr": "French",
|
19 |
+
"es": "Spanish",
|
20 |
+
"de": "German",
|
21 |
+
"it": "Italian",
|
22 |
+
"ru": "Russian"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
|
|
|
25 |
# Set up the Gradio interface with a submit button and side-by-side layout
|
26 |
with gr.Blocks() as iface:
|
27 |
gr.Markdown("# Text Translator")
|