Ashar086 commited on
Commit
22dad8a
·
verified ·
1 Parent(s): 0858416

Create sanity_check.py

Browse files
Files changed (1) hide show
  1. sanity_check.py +15 -0
sanity_check.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ def perform_sanity_check(url):
4
+ st.write(f"Performing sanity check for {url}...")
5
+ # Python code for sanity check
6
+ st.code("""
7
+ import requests
8
+
9
+ def sanity_check(url):
10
+ response = requests.get(url)
11
+ if response.status_code == 200:
12
+ print("Sanity check passed")
13
+ else:
14
+ print("Sanity check failed")
15
+ """, language='python')