Alexandre Gazola commited on
Commit
c27763c
·
1 Parent(s): 10d8b36
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -244,6 +244,12 @@ with gr.Blocks() as demo:
244
  )
245
 
246
  if __name__ == "__main__":
 
 
 
 
 
 
247
  print("\n" + "-"*30 + " App Starting " + "-"*30)
248
  # Check for SPACE_HOST and SPACE_ID at startup for information
249
  space_host_startup = os.getenv("SPACE_HOST")
 
244
  )
245
 
246
  if __name__ == "__main__":
247
+ files_dir = os.path.join(os.path.dirname(__file__), "files")
248
+ if not os.path.exists(files_dir):
249
+ print("Directory 'files/' does not exist.")
250
+ else
251
+ print("\n".join(os.listdir(files_dir))
252
+
253
  print("\n" + "-"*30 + " App Starting " + "-"*30)
254
  # Check for SPACE_HOST and SPACE_ID at startup for information
255
  space_host_startup = os.getenv("SPACE_HOST")