Yatheshr commited on
Commit
7412548
·
verified ·
1 Parent(s): 5944c9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -84,4 +84,16 @@ def main():
84
  prediction = model.predict(query_features)[0]
85
 
86
  if prediction == 1:
87
- st.error("🛑 This query is likely to be **Slow**
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  prediction = model.predict(query_features)[0]
85
 
86
  if prediction == 1:
87
+ st.error("🛑 This query is likely to be **Slow**.")
88
+ else:
89
+ st.success("✅ This query is likely to be **Fast**.")
90
+
91
+ # Recommendations
92
+ st.subheader("🛠️ Optimization Tips")
93
+ recommendations = recommend_tips(query_features.iloc[0])
94
+ for tip in recommendations:
95
+ st.write(tip)
96
+
97
+ # Run the app
98
+ if __name__ == '__main__':
99
+ main()