Nabeen commited on
Commit
5d874ad
1 Parent(s): 2f8b452

Update boneage_web.py

Browse files
Files changed (1) hide show
  1. boneage_web.py +1 -30
boneage_web.py CHANGED
@@ -24,39 +24,10 @@ from sklearn.base import BaseEstimator, TransformerMixin
24
  import combined_model
25
 
26
  cm = combined_model.build_regression_model()
27
- cm.load_weights(r"F:\python\web_streamlit\ALL_IN_ONE\model_weights\model_weights\combined_weights_7_epoch_third_acc.h5")
28
  ######################################################
29
  roi=img_extractor.RoiExtractor()
30
 
31
- # Connect to MySQL
32
- # conn = mysql.connector.connect(
33
- # host="localhost",
34
- # user = "root",
35
- # password = "",
36
- # database = "FeedbackCollection"
37
- # )
38
- # try:
39
- # if conn.is_connected:
40
- # #create cursor
41
- # cursor = conn.cursor()
42
-
43
- # #Create feedback table if not exits
44
- # cursor.execute('''CREATE TABLE IF NOT EXISTS feedback(
45
- # id INT AUTO_INCREMENT PRIMARY KEY,
46
- # name VARCHAR(255),
47
- # feedback_type VARCHAR(255),
48
- # feedback_message TEXT
49
- # )''')
50
-
51
- # conn.commit()
52
- # except mysql.connector.Error as e:
53
- # st.error(f"Error connecting to MySQL: {e}")
54
-
55
-
56
- # from sklearn.metrics import mean_absolute_error
57
-
58
- # Hide the Streamlit style, including the "Deploy" widget
59
- # st.set_page_config(hide_streamlit_style=True)
60
 
61
  # Sidebar: Navigation
62
  st.sidebar.header('Navigation')
 
24
  import combined_model
25
 
26
  cm = combined_model.build_regression_model()
27
+ cm.load_weights("https://drive.google.com/file/d/1MTD0i7aOb8s1tJlJMNhuUwW_Y8Q_BQvC/view?usp=sharing")
28
  ######################################################
29
  roi=img_extractor.RoiExtractor()
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
  # Sidebar: Navigation
33
  st.sidebar.header('Navigation')