Browse Source

修复import错误

赵小蒙 1 year ago
parent
commit
cd8b2d2c78
1 changed files with 2 additions and 1 deletions
  1. 2 1
      magic_pdf/spark/s3.py

+ 2 - 1
magic_pdf/spark/s3.py

@@ -6,7 +6,8 @@ import re
 import random
 from typing import List, Union
 try:
-    from app.config import s3_buckets, s3_clusters, get_cluster_name, s3_users
+    from app.config import s3_buckets, s3_clusters, s3_users
+    from app.common.runtime import get_cluster_name
 except ImportError:
     from magic_pdf.config import s3_buckets, s3_clusters, get_cluster_name, s3_users