Karan0310 commited on
Commit
c2be83d
·
verified ·
1 Parent(s): e84dca6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -50,7 +50,7 @@ LANGUAGES = {
50
 
51
  # Load language data with fallback
52
  try:
53
- with open('.venv/language.json', 'r') as file:
54
  language_data = json.load(file)
55
  except FileNotFoundError:
56
  print("⚠️ Language data file not found. Using basic mapping.")
@@ -344,11 +344,12 @@ with gr.Blocks(css=custom_css, title="🌍 KS Translation Hub") as demo:
344
 
345
  # Launch with enhanced settings
346
  if __name__ == "__main__":
347
- demo.launch(
348
- share=True,
349
- server_name="127.0.0.1",
350
- server_port=7860,
 
351
  #show_tips=True,
352
  #enable_queue=True,
353
- max_threads=40
354
- )
 
50
 
51
  # Load language data with fallback
52
  try:
53
+ with open('language.json', 'r') as file:
54
  language_data = json.load(file)
55
  except FileNotFoundError:
56
  print("⚠️ Language data file not found. Using basic mapping.")
 
344
 
345
  # Launch with enhanced settings
346
  if __name__ == "__main__":
347
+ demo.launch()
348
+ #demo.launch(
349
+ # share=True,
350
+ # server_name="127.0.0.1",
351
+ # server_port=7860,
352
  #show_tips=True,
353
  #enable_queue=True,
354
+ # max_threads=40
355
+ #)