Shami96 commited on
Commit
f992eb5
·
verified ·
1 Parent(s): 5b2b3a8

Update updated_word.py

Browse files
Files changed (1) hide show
  1. updated_word.py +1 -6
updated_word.py CHANGED
@@ -832,9 +832,4 @@ def process_hf(json_file, docx_file, output_file):
832
  import traceback
833
  traceback.print_exc()
834
 
835
- if __name__ == "__main__":
836
- import sys
837
- if len(sys.argv) == 4:
838
- process_hf(sys.argv[1], sys.argv[2], sys.argv[3])
839
- else:
840
- print("Usage: python updated_word.py <input_json> <input_docx> <output_docx>")
 
832
  import traceback
833
  traceback.print_exc()
834
 
835
+ main(json_path, docx_path, output_path)