camparchimedes commited on
Commit
8789528
ยท
verified ยท
1 Parent(s): eca1621

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -16,10 +16,19 @@ import chainlit as cl
16
  # ---------------------------------------------------for backend looks, example file:----------------------------------
17
  import os
18
 
19
- app_path = os.path.abspath(__file__)
20
- print("[email protected]:", app_path)
 
 
 
 
 
 
 
21
 
22
  # ------------------------------------------------------the end--------------------------------------------------------
 
 
23
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=100)
24
 
25
  system_template = """
 
16
  # ---------------------------------------------------for backend looks, example file:----------------------------------
17
  import os
18
 
19
+ with open('/home/user/app/.chainlit/config.toml', 'r') as file:
20
+ content = file.read()
21
+ print("config.toml:", content)
22
+
23
+ app_dir = os.path.dirname(os.path.abspath(__file__))
24
+ print("Directory containing app.py:", app_dir)
25
+
26
+ #app_path = os.path.abspath(__file__)
27
+ #print("[email protected]:", app_path)
28
 
29
  # ------------------------------------------------------the end--------------------------------------------------------
30
+
31
+
32
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=100)
33
 
34
  system_template = """