Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ logo = vals.fmt_image("logo.png", height=150)[0]
|
|
33 |
|
34 |
# Base tariffs imposed data
|
35 |
TARIFFS_IMPOSED = {'country': ['China', 'European Union', 'Vietnam', 'Taiwan', 'Japan', 'India', 'South Korea', 'Thailand', 'Switzerland', 'Indonesia', 'Malaysia', 'Cambodia', 'United Kingdom', 'South Africa', 'Brazil', 'Bangladesh', 'Singapore', 'Israel', 'Philippines', 'Chile', 'Australia', 'Pakistan', 'Turkey', 'Sri Lanka', 'Colombia', 'Peru', 'Nicaragua', 'Norway', 'Costa Rica', 'Jordan', 'Dominican Republic', 'United Arab Emirates', 'New Zealand', 'Argentina', 'Ecuador', 'Guatemala', 'Honduras', 'Madagascar', 'Myanmar (Burma)', 'Tunisia', 'Kazakhstan', 'Serbia', 'Egypt', 'Saudi Arabia', 'El Salvador', "C么te d'Ivoire", 'Laos', 'Botswana', 'Trinidad and Tobago', 'Morocco', 'Papua New Guinea', 'Malawi', 'Liberia', 'British Virgin Islands', 'Afghanistan', 'Zimbabwe', 'Benin', 'Barbados', 'Monaco', 'Syria', 'Uzbekistan', 'Republic of the Congo', 'Djibouti', 'French Polynesia', 'Cayman Islands', 'Kosovo', 'Cura莽ao', 'Vanuatu', 'Rwanda', 'Sierra Leone', 'Mongolia', 'San Marino', 'Antigua and Barbuda', 'Bermuda', 'Eswatini', 'Marshall Islands', 'Saint Pierre and Miquelon', 'Saint Kitts and Nevis', 'Turkmenistan', 'Grenada', 'Sudan', 'Turks and Caicos Islands', 'Aruba', 'Montenegro', 'Saint Helena', 'Kyrgyzstan', 'Yemen', 'Saint Vincent and the Grenadines', 'Niger', 'Saint Lucia', 'Nauru', 'Equatorial Guinea', 'Iran', 'Libya', 'Samoa', 'Guinea', 'Timor-Leste', 'Montserrat', 'Chad', 'Mali', 'Algeria', 'Oman', 'Uruguay', 'Bahamas', 'Lesotho', 'Ukraine', 'Bahrain', 'Qatar', 'Mauritius', 'Fiji', 'Iceland', 'Kenya', 'Liechtenstein', 'Guyana', 'Haiti', 'Bosnia and Herzegovina', 'Nigeria', 'Namibia', 'Brunei', 'Bolivia', 'Panama', 'Venezuela', 'North Macedonia', 'Ethiopia', 'Ghana', 'Moldova', 'Angola', 'Democratic Republic of the Congo', 'Jamaica', 'Mozambique', 'Paraguay', 'Zambia', 'Lebanon', 'Tanzania', 'Iraq', 'Georgia', 'Senegal', 'Azerbaijan', 'Cameroon', 'Uganda', 'Albania', 'Armenia', 'Nepal', 'Sint Maarten', 'Falkland Islands', 'Gabon', 'Kuwait', 'Togo', 'Suriname', 'Belize', 'Maldives', 'Tajikistan', 'Cabo Verde', 'Burundi', 'Guadeloupe', 'Bhutan', 'Martinique', 'Tonga', 'Mauritania', 'Dominica', 'Micronesia', 'Gambia', 'French Guiana', 'Christmas Island', 'Andorra', 'Central African Republic', 'Solomon Islands', 'Mayotte', 'Anguilla', 'Cocos (Keeling) Islands', 'Eritrea', 'Cook Islands', 'South Sudan', 'Comoros', 'Kiribati', 'Sao Tome and Principe', 'Norfolk Island', 'Gibraltar', 'Tuvalu', 'British Indian Ocean Territory', 'Tokelau', 'Guinea-Bissau', 'Svalbard and Jan Mayen', 'Heard and McDonald Islands', 'Reunion'], 'tariffs_charged': ['67%', '39%', '90%', '64%', '46%', '52%', '50%', '72%', '61%', '64%', '47%', '97%', '10%', '60%', '10%', '74%', '10%', '33%', '34%', '10%', '10%', '58%', '10%', '88%', '10%', '10%', '36%', '30%', '17%', '40%', '10%', '10%', '20%', '10%', '12%', '10%', '10%', '93%', '88%', '55%', '54%', '74%', '10%', '10%', '10%', '41%', '95%', '74%', '12%', '10%', '15%', '34%', '10%', '10%', '49%', '35%', '10%', '10%', '10%', '81%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '44%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '99%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '15%', '10%', '10%', '10%', '10%', '10%', '59%', '25%', '10%', '61%', '10%', '10%', '10%', '10%', '26%', '10%', '59%', '10%', '10%', '10%', '99%', '10%', '10%', '10%', '80%', '63%', '10%', '10%', '73%', '76%', '10%', '70%', '27%', '42%', '47%', '20%', '10%', '29%', '65%', '10%', '17%', '61%', '63%', '22%', '10%', '31%', '10%', '33%', '10%', '10%', '78%', '10%', '10%', '10%', '22%', '20%', '10%', '10%', '10%', '10%', '82%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '58%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '73%'], 'reciprocal_tariffs': ['34%', '20%', '46%', '32%', '24%', '26%', '25%', '36%', '31%', '32%', '24%', '49%', '10%', '30%', '10%', '37%', '10%', '17%', '17%', '10%', '10%', '29%', '10%', '44%', '10%', '10%', '18%', '15%', '10%', '20%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '47%', '44%', '28%', '27%', '37%', '10%', '10%', '10%', '21%', '48%', '37%', '10%', '10%', '10%', '17%', '10%', '10%', '10%', '18%', '10%', '10%', '10%', '41%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '22%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '50%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '30%', '13%', '10%', '31%', '10%', '10%', '10%', '10%', '13%', '10%', '30%', '10%', '10%', '10%', '50%', '10%', '10%', '10%', '40%', '32%', '10%', '10%', '37%', '38%', '10%', '35%', '14%', '21%', '24%', '10%', '10%', '15%', '33%', '10%', '10%', '31%', '32%', '11%', '10%', '16%', '10%', '17%', '10%', '10%', '39%', '10%', '10%', '10%', '11%', '10%', '10%', '10%', '10%', '10%', '41%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '29%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '37%']}
|
36 |
-
TARIFFS_NOT_PAUSED=["China"
|
37 |
|
38 |
# =============================================================================
|
39 |
# Helper Functions for Tariffs Calculations
|
|
|
33 |
|
34 |
# Base tariffs imposed data
|
35 |
TARIFFS_IMPOSED = {'country': ['China', 'European Union', 'Vietnam', 'Taiwan', 'Japan', 'India', 'South Korea', 'Thailand', 'Switzerland', 'Indonesia', 'Malaysia', 'Cambodia', 'United Kingdom', 'South Africa', 'Brazil', 'Bangladesh', 'Singapore', 'Israel', 'Philippines', 'Chile', 'Australia', 'Pakistan', 'Turkey', 'Sri Lanka', 'Colombia', 'Peru', 'Nicaragua', 'Norway', 'Costa Rica', 'Jordan', 'Dominican Republic', 'United Arab Emirates', 'New Zealand', 'Argentina', 'Ecuador', 'Guatemala', 'Honduras', 'Madagascar', 'Myanmar (Burma)', 'Tunisia', 'Kazakhstan', 'Serbia', 'Egypt', 'Saudi Arabia', 'El Salvador', "C么te d'Ivoire", 'Laos', 'Botswana', 'Trinidad and Tobago', 'Morocco', 'Papua New Guinea', 'Malawi', 'Liberia', 'British Virgin Islands', 'Afghanistan', 'Zimbabwe', 'Benin', 'Barbados', 'Monaco', 'Syria', 'Uzbekistan', 'Republic of the Congo', 'Djibouti', 'French Polynesia', 'Cayman Islands', 'Kosovo', 'Cura莽ao', 'Vanuatu', 'Rwanda', 'Sierra Leone', 'Mongolia', 'San Marino', 'Antigua and Barbuda', 'Bermuda', 'Eswatini', 'Marshall Islands', 'Saint Pierre and Miquelon', 'Saint Kitts and Nevis', 'Turkmenistan', 'Grenada', 'Sudan', 'Turks and Caicos Islands', 'Aruba', 'Montenegro', 'Saint Helena', 'Kyrgyzstan', 'Yemen', 'Saint Vincent and the Grenadines', 'Niger', 'Saint Lucia', 'Nauru', 'Equatorial Guinea', 'Iran', 'Libya', 'Samoa', 'Guinea', 'Timor-Leste', 'Montserrat', 'Chad', 'Mali', 'Algeria', 'Oman', 'Uruguay', 'Bahamas', 'Lesotho', 'Ukraine', 'Bahrain', 'Qatar', 'Mauritius', 'Fiji', 'Iceland', 'Kenya', 'Liechtenstein', 'Guyana', 'Haiti', 'Bosnia and Herzegovina', 'Nigeria', 'Namibia', 'Brunei', 'Bolivia', 'Panama', 'Venezuela', 'North Macedonia', 'Ethiopia', 'Ghana', 'Moldova', 'Angola', 'Democratic Republic of the Congo', 'Jamaica', 'Mozambique', 'Paraguay', 'Zambia', 'Lebanon', 'Tanzania', 'Iraq', 'Georgia', 'Senegal', 'Azerbaijan', 'Cameroon', 'Uganda', 'Albania', 'Armenia', 'Nepal', 'Sint Maarten', 'Falkland Islands', 'Gabon', 'Kuwait', 'Togo', 'Suriname', 'Belize', 'Maldives', 'Tajikistan', 'Cabo Verde', 'Burundi', 'Guadeloupe', 'Bhutan', 'Martinique', 'Tonga', 'Mauritania', 'Dominica', 'Micronesia', 'Gambia', 'French Guiana', 'Christmas Island', 'Andorra', 'Central African Republic', 'Solomon Islands', 'Mayotte', 'Anguilla', 'Cocos (Keeling) Islands', 'Eritrea', 'Cook Islands', 'South Sudan', 'Comoros', 'Kiribati', 'Sao Tome and Principe', 'Norfolk Island', 'Gibraltar', 'Tuvalu', 'British Indian Ocean Territory', 'Tokelau', 'Guinea-Bissau', 'Svalbard and Jan Mayen', 'Heard and McDonald Islands', 'Reunion'], 'tariffs_charged': ['67%', '39%', '90%', '64%', '46%', '52%', '50%', '72%', '61%', '64%', '47%', '97%', '10%', '60%', '10%', '74%', '10%', '33%', '34%', '10%', '10%', '58%', '10%', '88%', '10%', '10%', '36%', '30%', '17%', '40%', '10%', '10%', '20%', '10%', '12%', '10%', '10%', '93%', '88%', '55%', '54%', '74%', '10%', '10%', '10%', '41%', '95%', '74%', '12%', '10%', '15%', '34%', '10%', '10%', '49%', '35%', '10%', '10%', '10%', '81%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '44%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '99%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '15%', '10%', '10%', '10%', '10%', '10%', '59%', '25%', '10%', '61%', '10%', '10%', '10%', '10%', '26%', '10%', '59%', '10%', '10%', '10%', '99%', '10%', '10%', '10%', '80%', '63%', '10%', '10%', '73%', '76%', '10%', '70%', '27%', '42%', '47%', '20%', '10%', '29%', '65%', '10%', '17%', '61%', '63%', '22%', '10%', '31%', '10%', '33%', '10%', '10%', '78%', '10%', '10%', '10%', '22%', '20%', '10%', '10%', '10%', '10%', '82%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '58%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '73%'], 'reciprocal_tariffs': ['34%', '20%', '46%', '32%', '24%', '26%', '25%', '36%', '31%', '32%', '24%', '49%', '10%', '30%', '10%', '37%', '10%', '17%', '17%', '10%', '10%', '29%', '10%', '44%', '10%', '10%', '18%', '15%', '10%', '20%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '47%', '44%', '28%', '27%', '37%', '10%', '10%', '10%', '21%', '48%', '37%', '10%', '10%', '10%', '17%', '10%', '10%', '10%', '18%', '10%', '10%', '10%', '41%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '22%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '50%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '30%', '13%', '10%', '31%', '10%', '10%', '10%', '10%', '13%', '10%', '30%', '10%', '10%', '10%', '50%', '10%', '10%', '10%', '40%', '32%', '10%', '10%', '37%', '38%', '10%', '35%', '14%', '21%', '24%', '10%', '10%', '15%', '33%', '10%', '10%', '31%', '32%', '11%', '10%', '16%', '10%', '17%', '10%', '10%', '39%', '10%', '10%', '10%', '11%', '10%', '10%', '10%', '10%', '10%', '41%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '29%', '10%', '10%', '10%', '10%', '10%', '10%', '10%', '37%']}
|
36 |
+
TARIFFS_NOT_PAUSED=["China"]
|
37 |
|
38 |
# =============================================================================
|
39 |
# Helper Functions for Tariffs Calculations
|