Spaces:
Build error
Build error
Commit
·
d31ea2d
1
Parent(s):
8940828
Update app.py
Browse files
app.py
CHANGED
@@ -202,7 +202,7 @@ def translate_fill(document_name,output_file, src, trg):
|
|
202 |
if doc.paragraphs[0].text in list(input_output_trans.keys()):
|
203 |
lang_doc_dict = input_output_trans[doc.paragraphs[0].text]
|
204 |
if trg in lang_doc_dict.keys():
|
205 |
-
time.sleep(
|
206 |
return lang_doc_dict[trg]
|
207 |
|
208 |
template_document = Document(document_name)
|
@@ -379,7 +379,7 @@ input_output_key = {"NON-DISCLOSURE AGREEMENT":"NON-DISCLOSURE key_clauses.txt"}
|
|
379 |
def run_key_clause(document_name, output_name,source_language):
|
380 |
doc = docx.Document(document_name)
|
381 |
if doc.paragraphs[0].text in list(input_output_key.keys()):
|
382 |
-
time.sleep(
|
383 |
return input_output_key[doc.paragraphs[0].text]
|
384 |
|
385 |
if source_language != 'english':
|
|
|
202 |
if doc.paragraphs[0].text in list(input_output_trans.keys()):
|
203 |
lang_doc_dict = input_output_trans[doc.paragraphs[0].text]
|
204 |
if trg in lang_doc_dict.keys():
|
205 |
+
time.sleep(2)
|
206 |
return lang_doc_dict[trg]
|
207 |
|
208 |
template_document = Document(document_name)
|
|
|
379 |
def run_key_clause(document_name, output_name,source_language):
|
380 |
doc = docx.Document(document_name)
|
381 |
if doc.paragraphs[0].text in list(input_output_key.keys()):
|
382 |
+
time.sleep(2)
|
383 |
return input_output_key[doc.paragraphs[0].text]
|
384 |
|
385 |
if source_language != 'english':
|