zainabbbbbbbbbb commited on
Commit
b7ec746
ยท
verified ยท
1 Parent(s): 17346f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -1
app.py CHANGED
@@ -32,4 +32,37 @@ st.markdown("<h1 style='text-align: center; color: #4CAF50;'>Medbot ๐Ÿฉบ</h1>",
32
  st.markdown("<h3 style='text-align: center;'>Your Personal Healthcare Assistant</h3>", unsafe_allow_html=True)
33
 
34
  # Sidebar with green hearts and options
35
- st.sidebar.image("https://via
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  st.markdown("<h3 style='text-align: center;'>Your Personal Healthcare Assistant</h3>", unsafe_allow_html=True)
33
 
34
  # Sidebar with green hearts and options
35
+ st.sidebar.image("https://via.placeholder.com/150?text=Medbot", use_column_width=True) # Add your logo/image URL
36
+ st.sidebar.markdown("<h3 style='color: #4CAF50;'>Hello! I'm Medbot! ๐Ÿ’š</h3>", unsafe_allow_html=True)
37
+ st.sidebar.write("I can help you with: ")
38
+ st.sidebar.markdown("""
39
+ <ul style='color: #4CAF50; font-size: 16px;'>
40
+ <li>๐Ÿ’š <strong>Symptom Analysis</strong></li>
41
+ <li>๐Ÿ’š <strong>Medical Condition Information</strong></li>
42
+ <li>๐Ÿ’š <strong>Health Tips</strong></li>
43
+ </ul>
44
+ """, unsafe_allow_html=True)
45
+
46
+ # Chat Interface
47
+ st.markdown("<hr style='border:1px solid #D3D3D3'>", unsafe_allow_html=True)
48
+ st.image("https://via.placeholder.com/600x200?text=Healthcare+Image", use_column_width=True) # Add relevant image URL
49
+ user_input = st.text_input("Enter your symptoms or question:", "")
50
+
51
+ if st.button("Submit"):
52
+ if user_input:
53
+ response = medbot_response(user_input)
54
+ # Display Medbot's response in styled chat bubble
55
+ st.markdown(
56
+ f"<div style='background-color: #f0f8e8; border-radius: 10px; padding: 10px;'>"
57
+ f"<p style='color: #006400; font-size: 16px;'><strong>Medbot:</strong> {response}</p></div>",
58
+ unsafe_allow_html=True
59
+ )
60
+ else:
61
+ st.warning("Please enter a message to proceed.")
62
+
63
+ # Footer
64
+ st.markdown(
65
+ "<footer style='text-align: center; color: #888;'>"
66
+ "Built with โค๏ธ using Streamlit & Groq AI</footer>",
67
+ unsafe_allow_html=True
68
+ )