shukdevdatta123 commited on
Commit
a9e3a49
·
verified ·
1 Parent(s): 3a3c7af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -1
app.py CHANGED
@@ -107,9 +107,27 @@ else:
107
  fare_data = df[(df['Origin'] == origin) & (df['Destination'].isin(destinations))]
108
 
109
  # Display the fare data
 
110
  if not fare_data.empty:
111
  for index, row in fare_data.iterrows():
112
- st.write(f"Fare from {origin} to {row['Destination']} is: {row['Fare (৳)']}৳")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  else:
114
  st.write("No fare data available for the selected origin and destinations.")
115
  else:
 
107
  fare_data = df[(df['Origin'] == origin) & (df['Destination'].isin(destinations))]
108
 
109
  # Display the fare data
110
+ # Display the fare data in a creative and aesthetic format
111
  if not fare_data.empty:
112
  for index, row in fare_data.iterrows():
113
+ origin_to_dest_fare = row['Fare (৳)']
114
+ destination = row['Destination']
115
+
116
+ # Creative output with icons, emojis, and styled text
117
+ fare_message = f"""
118
+ <div style="background-color: #f0f8ff; padding: 10px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);">
119
+ <h4 style="font-family: 'Arial', sans-serif; color: #003366;">
120
+ 🚇 <strong>{origin}</strong> to <strong>{destination}</strong> Fare
121
+ </h4>
122
+ <p style="font-family: 'Arial', sans-serif; font-size: 18px; color: #009688;">
123
+ 💵 Fare: <strong style="font-size: 20px; color: #e91e63;">{origin_to_dest_fare}৳</strong>
124
+ </p>
125
+ <p style="font-family: 'Arial', sans-serif; font-size: 14px; color: #555555;">
126
+ ✨ Enjoy your journey on the Dhaka Metro! 🚉
127
+ </p>
128
+ </div>
129
+ """
130
+ st.markdown(fare_message, unsafe_allow_html=True)
131
  else:
132
  st.write("No fare data available for the selected origin and destinations.")
133
  else: