Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -52,6 +52,7 @@ def btTranslator(docxfile):
|
|
52 |
text=bigtext
|
53 |
|
54 |
for _,lang in zip(stqdm(langs),langs):
|
|
|
55 |
sleep(0.5)
|
56 |
# mname = '/content/drive/MyDrive/Transformers Models/opus-mt-en-hi-Trans Model'
|
57 |
tokenizer = MarianTokenizer.from_pretrained(lang)
|
@@ -63,7 +64,7 @@ def btTranslator(docxfile):
|
|
63 |
translated_paragraphs = []
|
64 |
|
65 |
for _, paragraph in zip(stqdm(paragraphs),paragraphs):
|
66 |
-
|
67 |
# ######################################
|
68 |
sleep(0.5)
|
69 |
|
|
|
52 |
text=bigtext
|
53 |
|
54 |
for _,lang in zip(stqdm(langs),langs):
|
55 |
+
st.spinner('Wait for it...')
|
56 |
sleep(0.5)
|
57 |
# mname = '/content/drive/MyDrive/Transformers Models/opus-mt-en-hi-Trans Model'
|
58 |
tokenizer = MarianTokenizer.from_pretrained(lang)
|
|
|
64 |
translated_paragraphs = []
|
65 |
|
66 |
for _, paragraph in zip(stqdm(paragraphs),paragraphs):
|
67 |
+
st.spinner('Wait for it...')
|
68 |
# ######################################
|
69 |
sleep(0.5)
|
70 |
|