Spaces:
Running
Running
Update updated_word.py
Browse files- 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 |
-
|
| 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|