garvitcpp commited on
Commit
776edea
·
verified ·
1 Parent(s): 8567f55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -10,13 +10,6 @@ import json
10
  # Set up logging
11
  logging.basicConfig(level=logging.DEBUG)
12
 
13
- def health_check():
14
- """Simple health check endpoint that returns JSON"""
15
- if 'health' in st.experimental_get_query_params():
16
- st.json({"status": "OK"})
17
- st.stop()
18
- return True
19
- return False
20
 
21
  def main():
22
  # Streamlit app configuration
@@ -133,6 +126,13 @@ def main():
133
  except Exception as e:
134
  st.error(f"Error processing document: {e}")
135
 
136
-
 
 
 
 
 
 
 
137
  if __name__ == "__main__":
138
  main()
 
10
  # Set up logging
11
  logging.basicConfig(level=logging.DEBUG)
12
 
 
 
 
 
 
 
 
13
 
14
  def main():
15
  # Streamlit app configuration
 
126
  except Exception as e:
127
  st.error(f"Error processing document: {e}")
128
 
129
+ def health_check():
130
+ """Simple health check endpoint that returns JSON"""
131
+ if 'health' in st.experimental_get_query_params():
132
+ st.json({"status": "OK"})
133
+ st.stop()
134
+ return True
135
+ return False
136
+
137
  if __name__ == "__main__":
138
  main()