youl commited on
Commit
a0fadba
·
verified ·
1 Parent(s): dbaa8dc

update utile

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -12,7 +12,7 @@ import tempfile
12
  def getcredentials():
13
  secret_key_credential = os.getenv("cloud_vision")
14
 
15
- with tempfile.NamedTemporaryFile(mode='w+', delete=True,format=".json") as temp_file:
16
  json_file = temp_file.write(secret_key_credential)
17
 
18
  tempfile_name = json_file.name
 
12
  def getcredentials():
13
  secret_key_credential = os.getenv("cloud_vision")
14
 
15
+ with tempfile.NamedTemporaryFile(mode='w+', delete= True, suffix=".json") as temp_file:
16
  json_file = temp_file.write(secret_key_credential)
17
 
18
  tempfile_name = json_file.name