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

Update app.py

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