Engineer786 commited on
Commit
25dd8a6
·
verified ·
1 Parent(s): 364b861

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -31,4 +31,11 @@ if st.button("Convert"):
31
  try:
32
  conversion_rate = get_conversion_rate(from_currency, to_currency)
33
  converted_amount = amount * conversion_rate
34
- st.success(f"{amount} {from_currency} is equal to {converted_amount:.2f} {to
 
 
 
 
 
 
 
 
31
  try:
32
  conversion_rate = get_conversion_rate(from_currency, to_currency)
33
  converted_amount = amount * conversion_rate
34
+ st.success(f"{amount} {from_currency} is equal to {converted_amount:.2f} {to_currency}")
35
+ except ValueError as e:
36
+ st.error(f"Error: {e}")
37
+
38
+ # Add some visual appeal
39
+ st.markdown("---")
40
+ st.write("**Note:** Currency conversion rates are updated in real-time.")
41
+ st.write("**Disclaimer:** While we strive to provide accurate and up-to-date exchange rates, please note that exchange rates can fluctuate rapidly. It's always advisable to verify the exact rates with your financial institution or a reliable currency exchange service.")