Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ LANGUAGES = {
|
|
50 |
|
51 |
# Load language data with fallback
|
52 |
try:
|
53 |
-
with open('
|
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 |
-
|
349 |
-
|
350 |
-
|
|
|
351 |
#show_tips=True,
|
352 |
#enable_queue=True,
|
353 |
-
|
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 |
+
#)
|