lingyit1108 commited on
Commit
604292f
·
1 Parent(s): d4a0e1e

added folder check

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -6,4 +6,10 @@ app = FastAPI()
6
 
7
  @app.get("/")
8
  async def root():
9
- return {"message": "Hello World!"}
 
 
 
 
 
 
 
6
 
7
  @app.get("/")
8
  async def root():
9
+
10
+ try:
11
+ file_ls_str = ", ".join(os.listdir("large_files"))
12
+ except:
13
+ file_ls_str = "NA"
14
+
15
+ return {"message": f"Hello World! File list: {file_ls_str}"}