pentarosarium commited on
Commit
a6966e2
·
1 Parent(s): 340bdfd

test modal client

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -25,13 +25,22 @@ def init_modal():
25
 
26
  def main():
27
  st.title("Financial Statement Analyzer")
28
-
 
 
 
 
 
 
 
 
 
 
29
  # Initialize Modal
30
  if not init_modal():
31
  return
32
 
33
- modal.config.token = os.environ.get('MODAL_TOKEN')
34
-
35
  uploaded_files = st.file_uploader(
36
  "Choose PDF files",
37
  type="pdf",
 
25
 
26
  def main():
27
  st.title("Financial Statement Analyzer")
28
+
29
+ def test_modal_connection():
30
+ try:
31
+ client = modal.Client()
32
+ print("Modal client initialized successfully.")
33
+ except Exception as e:
34
+ print(f"Error initializing Modal client: {str(e)}")
35
+
36
+ test_modal_connection()
37
+
38
+
39
  # Initialize Modal
40
  if not init_modal():
41
  return
42
 
43
+
 
44
  uploaded_files = st.file_uploader(
45
  "Choose PDF files",
46
  type="pdf",