OpenDILab commited on
Commit
696015b
1 Parent(s): 56a30d8

dev(hus):change container log directory

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -133,15 +133,14 @@ def _get_api_key_cfgs(api_key):
133
  if __name__ == '__main__':
134
 
135
  ###########################
136
- os.makedirs('/data')
137
- with open ('/data/test.json','w') as f:
138
  f.write('hello')
139
  api = huggingface_hub.HfApi()
140
  write_token = os.environ.get('CONTAINER')
141
  huggingface_hub.login(token = write_token, write_permission = True)
142
 
143
  api.upload_file(
144
- path_or_fileobj="/data/test.json",
145
  path_in_repo="container.log",
146
  repo_id="OpenDILabCommunity/container",
147
  repo_type="dataset",
 
133
  if __name__ == '__main__':
134
 
135
  ###########################
136
+ with open ('./test.json','w') as f:
 
137
  f.write('hello')
138
  api = huggingface_hub.HfApi()
139
  write_token = os.environ.get('CONTAINER')
140
  huggingface_hub.login(token = write_token, write_permission = True)
141
 
142
  api.upload_file(
143
+ path_or_fileobj="./test.json",
144
  path_in_repo="container.log",
145
  repo_id="OpenDILabCommunity/container",
146
  repo_type="dataset",