Kvikontent commited on
Commit
754fdf2
·
verified ·
1 Parent(s): 588862d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -20
app.py CHANGED
@@ -33,16 +33,16 @@ if get == "Input":
33
  if sub:
34
  data = get_location(ip)
35
  if data:
36
- st.markdown(f"""Information that we searched for this ip address: {data['ip']}\n
37
- City: {data['city']}\n
38
- Region: {data['region']}\n
39
- Country: {data['country']}\n
40
- Postal code: {data['postalcode']}\n
41
- Latitude: {data['latitude']}\n
42
- Longitude: {data['longitude']}\n
43
- Timezone: {data['timezone']}\n
44
- UTC Offset: {data['utc_offset']}\n
45
- Country Calling Code: {data['country_calling_code']}\n
46
  Country Population: {data['country_population']}""")
47
 
48
  if get == "Get yours":
@@ -51,14 +51,14 @@ if get == "Get yours":
51
  if sub:
52
  data = get_location(ip)
53
  if data:
54
- st.markdown(f"""Information that we searched for this ip address: {data['ip']}\n
55
- City: {data['city']}\n
56
- Region: {data['region']}\n
57
- Country: {data['country']}\n
58
- Postal code: {data['postalcode']}\n
59
- Latitude: {data['latitude']}\n
60
- Longitude: {data['longitude']}\n
61
- Timezone: {data['timezone']}\n
62
- UTC Offset: {data['utc_offset']}\n
63
- Country Calling Code: {data['country_calling_code']}\n
64
  Country Population: {data['country_population']}""")
 
33
  if sub:
34
  data = get_location(ip)
35
  if data:
36
+ st.header(f"""Information that we searched for this ip address: {data['ip']}
37
+ City: {data['city']}
38
+ Region: {data['region']}
39
+ Country: {data['country']}
40
+ Postal code: {data['postalcode']}
41
+ Latitude: {data['latitude']}
42
+ Longitude: {data['longitude']}
43
+ Timezone: {data['timezone']}
44
+ UTC Offset: {data['utc_offset']}
45
+ Country Calling Code: {data['country_calling_code']}
46
  Country Population: {data['country_population']}""")
47
 
48
  if get == "Get yours":
 
51
  if sub:
52
  data = get_location(ip)
53
  if data:
54
+ st.header(f"""Information that we searched for this ip address: {data['ip']}
55
+ City: {data['city']}
56
+ Region: {data['region']}
57
+ Country: {data['country']}
58
+ Postal code: {data['postalcode']}
59
+ Latitude: {data['latitude']}
60
+ Longitude: {data['longitude']}
61
+ Timezone: {data['timezone']}
62
+ UTC Offset: {data['utc_offset']}
63
+ Country Calling Code: {data['country_calling_code']}
64
  Country Population: {data['country_population']}""")