camparchimedes commited on
Commit
715c2a4
·
verified ·
1 Parent(s): 9e42f4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py CHANGED
@@ -3,6 +3,24 @@
3
  # ver01.01-5.workload-----app.py
4
  # ===========================================
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  import asyncio
7
  import concurrent.futures
8
  import os
 
3
  # ver01.01-5.workload-----app.py
4
  # ===========================================
5
 
6
+ def print_scripts(file_path):
7
+ try:
8
+ with open(file_path, 'r') as file:
9
+ print(f"\n--- Contents of {file_path} ---\n")
10
+ print(file.read())
11
+ print(f"--- End of {file_path} ---\n")
12
+ except Exception as e:
13
+ print(f"Could not read {file_path}: {e}")
14
+
15
+
16
+ if __name__ == "__main__":
17
+
18
+ file_1 = "/home/user/.local/lib/python3.10/site-packages/chainlit/socket.py"
19
+ file_2 = "/home/user/.local/lib/python3.10/site-packages/socketio/async_server.py"
20
+
21
+ print_scripts(file_1)
22
+ print_scripts(file_2)
23
+
24
  import asyncio
25
  import concurrent.futures
26
  import os