lodhrangpt commited on
Commit
3daa2d3
1 Parent(s): 87cceb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -5
app.py CHANGED
@@ -15,13 +15,25 @@ def translate_text(text, target_language):
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")
 
15
 
16
  # Define available languages
17
  languages = {
18
+ "English": "English",
19
+ "Spanish": "Spanish",
20
+ "French": "French",
21
+ "German": "German",
22
+ "Chinese": "Chinese (Mandarin)",
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")