Yw22 commited on
Commit
1822775
1 Parent(s): d57f098
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -131,8 +131,16 @@ if not os.path.exists("models/personalized/TUSUN.safetensors"):
131
  os.system(f'mv models/personalized/TUSUN.safetensors?download=true models/personalized/TUSUN.safetensors')
132
  print("TUSUN Download!", )
133
 
134
- os.system(f'mv /usr/local/lib/python3.10/site-packages/gradio/helpers.py /usr/local/lib/python3.10/site-packages/gradio/helpers_bkp.py')
135
- os.system(f'mv helpers.py /usr/local/lib/python3.10/site-packages/gradio/helpers.py')
 
 
 
 
 
 
 
 
136
 
137
  # - - - - - examples - - - - - #
138
 
 
131
  os.system(f'mv models/personalized/TUSUN.safetensors?download=true models/personalized/TUSUN.safetensors')
132
  print("TUSUN Download!", )
133
 
134
+ mv1 = os.system(f'mv /usr/local/lib/python3.10/site-packages/gradio/helpers.py /usr/local/lib/python3.10/site-packages/gradio/helpers_bkp.py')
135
+ mv2 = os.system(f'mv helpers.py /usr/local/lib/python3.10/site-packages/gradio/helpers.py')
136
+
137
+
138
+ # 检查命令是否成功
139
+ if mv1 == 0 and mv2 == 0:
140
+ print("file move success!")
141
+ else:
142
+ print("file move failed!")
143
+
144
 
145
  # - - - - - examples - - - - - #
146