broadfield-dev commited on
Commit
9b8a7bf
·
verified ·
1 Parent(s): f554d83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -110,8 +110,9 @@ def create_hf_space():
110
  if filename.endswith(".py"):
111
  # Inject parameters into Python files if present
112
  content = f"PARAMS = {json.dumps(params)}\n\n{content}"
 
113
  f.write(content)
114
- os.system(f"black temp_{filename}")
115
  # Upload to the new Space
116
  try:
117
  api.upload_file(
 
110
  if filename.endswith(".py"):
111
  # Inject parameters into Python files if present
112
  content = f"PARAMS = {json.dumps(params)}\n\n{content}"
113
+
114
  f.write(content)
115
+ os.system(f"black temp_{filename}")
116
  # Upload to the new Space
117
  try:
118
  api.upload_file(