matichon commited on
Commit
4d520da
1 Parent(s): 798687c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +133 -45
app.py CHANGED
@@ -1,77 +1,165 @@
1
  import gradio as gr
2
 
3
- # Define the content sections
4
- content = {
5
- "Location and Weather": """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  Centara Grand and Bangkok Convention Centre (Centara Grand) are located in the center of Bangkok, at the same place as Central World.
7
- Centara Grand is between the BTS (Bangkok Mass Transit) Siam Center station and Chidlom station. You can get off at either Siam Center or Chidlom and walk via the skywalk directly to Centara Grand (400m - 800m).
8
- BTS vending machines primarily accept cash, both banknotes and coins, and they return change in coins. Please use 20 baht or 100 baht banknotes. And good news for Chinese visitors: BTS vending machines accept WeChat Pay and Alipay.
 
 
 
 
 
 
9
  Grab ride-hailing is another excellent choice for transportation in Bangkok, and the most effective option for short distances (less than 5km) is GrabBike (motorcycle).
10
- I highly recommend NOT walking any distance without using the skywalk. Crosswalks without traffic lights are DANGEROUS, and I don't recommend taking a bus in Bangkok.
 
11
  At the moment (August 5th), it is the rainy season with temperatures between 25°C and 35°C.
12
- """,
13
- "Maps": """
 
 
 
 
 
 
14
  In Thailand, we use Google Maps as the primary tool for searching locations, coffee shops, restaurants, hotels, grocery stores, pharmacies, and estimating arrival times.
 
 
 
 
 
15
  However, if you can't use Google Maps, you can use Apple Maps instead.
16
- """,
17
- "Internet SIM cards": """
 
 
18
  Thailand has extensive 5G coverage and density, especially in Bangkok.
19
- The price of 5G is very cheap, about 50GB for 30 USD per month. You can buy a SIM card at the airport or at 7-Eleven. You can choose any provider, as there is no significant difference between AIS and True.
20
- """,
21
- "Transportation": """
 
 
 
 
 
 
 
 
22
  Suvarnabhumi airport grab pickup 2nd floor exit 4.
23
  Ref : https://thesmartlocal.co.th/grab-suvarnabhumi-airport/
24
- """,
25
- "Food": """
 
 
 
26
  Grab food delivery is the best choice for convenience.
27
  Pricing starts at about 3 USD.
 
 
 
 
28
  Another option is the restaurants at Central World.
29
- Central World is one of the most famous shopping malls in Bangkok. You can find any food style at Central World.
30
- """,
31
- "Coffee": """
 
 
 
 
 
 
32
  I highly recommend Starbucks. The pricing is about 5 USD.
33
  Starbucks is a good spot for waiting and discussing. At Central World, they have four Starbucks locations.
34
  The first Starbucks Reserve is on the first floor.
 
 
 
 
35
  The second Starbucks is on the second floor near the BTS Skywalk.
 
 
 
 
36
  The third Starbucks is on the third floor.
 
 
 
 
37
  The last Starbucks is on the fifth floor.
38
- """,
39
- "Medicine": """
 
 
 
 
 
40
  I recommend using GrabMart to buy medicine.
 
 
 
 
41
  For stores, you can choose either Boots or Watsons. Both of them have pharmacists available in the shop.
42
- """,
43
- "People and Language": """
 
 
 
 
 
 
44
  Thai people mostly use transliterated English words for venues, locations, and coffee menus.
45
  A few Thai people can speak Chinese, but it's not guaranteed.
46
  Google Translate is not very good for translating English to Thai or Chinese to Thai.
47
- """,
48
- "Recommended activities": """
 
 
49
  For personal advice, I highly recommend getting any 'Oral treatment' because of the price.
50
  You can search on Google Maps to find a dental clinic near your hotel.
51
- """,
52
- "Farewell": """
 
 
53
  Hope you guys enjoy this guidebook and find it useful.
54
  If you need any help, please reach out to me via the Discord #ACL2024 channel or on X.
55
- Discord
56
- X
57
- """,
58
- "About Float16.cloud": """
59
- Float16.cloud provides a managed GPU resource platform for developers. This includes modern GPU services like LLM as a Service, one-click deployment, serverless GPU, one-click training, and more features coming in the future.
60
- If you need emergency H100 sponsor please contact me.
61
- """
62
- }
63
 
64
- def display_section(section):
65
- return content[section]
66
-
67
- # Create the Gradio interface
68
- iface = gr.Interface(
69
- fn=display_section,
70
- inputs=gr.inputs.Dropdown(list(content.keys()), label="Select a section"),
71
- outputs="text",
72
- title="ACL 2024 Guide",
73
- description="Welcome to ACL 2024 in Bangkok! Select a section to get information."
74
- )
75
 
 
 
 
 
 
76
  # Launch the interface
77
  iface.launch()
 
1
  import gradio as gr
2
 
3
+ with gr.Blocks() as iface:
4
+ gr.Image(
5
+ value = "https://blog.float16.cloud/content/images/size/w2000/2024/08/ACL2024_BKK_Guidebook.png",
6
+ width = 740,
7
+ height = 378,
8
+ )
9
+ gr.Markdown(
10
+ """
11
+ ## ACL 2024 Bangkok Guidebook
12
+
13
+ Hello everyone, welcome to ACL 2024 and welcome to Bangkok!
14
+ I'm Mati, the founder of Float16.cloud. I'm Thai and based in Bangkok.
15
+ The upcoming ACL 2024 will be held from August 11th to 16th, 2024, at Centara Grand and Bangkok Convention Centre.
16
+ I want to provide an update on how to 'deal' with Bangkok in several aspects such as:
17
+
18
+ - Location and Weather
19
+ - Maps
20
+ - Internet SIM cards
21
+ - Transportation
22
+ - Food
23
+ - Coffee
24
+ - Medicine
25
+ - People and Language
26
+ - Recommended activities
27
+
28
+ ---
29
+
30
+ ### Location and Weather
31
  Centara Grand and Bangkok Convention Centre (Centara Grand) are located in the center of Bangkok, at the same place as Central World.
32
+ Centara Grand is between the BTS (Bangkok Mass Transit) Siam Center station and Chidlom station.
33
+ You can get off at either Siam Center or Chidlom and walk via the skywalk directly to Centara Grand (400m - 800m).
34
+
35
+ > **_NOTE:_** BTS vending machines primarily accept cash, both banknotes and coins, and they return change in coins. Please use 20 baht or 100 baht banknotes. And good news for Chinese visitors: BTS vending machines accept WeChat Pay and Alipay.
36
+ """)
37
+ gr.Image(value = 'https://blog.float16.cloud/content/images/2024/08/IMG_001C66AE689E-1.jpeg', width = 740, height = 660)
38
+ gr.Markdown(
39
+ """
40
  Grab ride-hailing is another excellent choice for transportation in Bangkok, and the most effective option for short distances (less than 5km) is GrabBike (motorcycle).
41
+
42
+ > **_NOTE:_** I highly recommend NOT walking any distance without using the skywalk. Crosswalks without traffic lights are DANGEROUS, and I don't recommend taking a bus in Bangkok.
43
  At the moment (August 5th), it is the rainy season with temperatures between 25°C and 35°C.
44
+ """
45
+ )
46
+ gr.Image(value='https://blog.float16.cloud/content/images/size/w1600/2024/08/Screenshot-2567-08-05-at-21.23.18.jpg', width=740, height=415)
47
+ gr.Markdown(
48
+ """
49
+ ---
50
+
51
+ ### Maps
52
  In Thailand, we use Google Maps as the primary tool for searching locations, coffee shops, restaurants, hotels, grocery stores, pharmacies, and estimating arrival times.
53
+ """
54
+ )
55
+ gr.Image(value="https://blog.float16.cloud/content/images/size/w1600/2024/08/Screenshot-2567-08-05-at-21.08.25.jpg", width=740, height=380)
56
+ gr.Markdown(
57
+ """
58
  However, if you can't use Google Maps, you can use Apple Maps instead.
59
+
60
+ ---
61
+
62
+ ### Internet SIM cards
63
  Thailand has extensive 5G coverage and density, especially in Bangkok.
64
+ The price of 5G is very cheap, about 50GB for 30 USD per month. You can buy a SIM card at the airport or at 7-Eleven.
65
+ You can choose any provider, as there is no significant difference between AIS and True.
66
+
67
+ ---
68
+
69
+ ### Transportation
70
+ """
71
+ )
72
+ gr.Image(value="https://loyaltylobby.com/wp-content/uploads/2024/04/Grab-BKK-Pick-Up-Point-Floor-1-Exit-4-Borh.png", width=740, height=415)
73
+ gr.Markdown(
74
+ """
75
  Suvarnabhumi airport grab pickup 2nd floor exit 4.
76
  Ref : https://thesmartlocal.co.th/grab-suvarnabhumi-airport/
77
+
78
+ ---
79
+
80
+ ### Food
81
+
82
  Grab food delivery is the best choice for convenience.
83
  Pricing starts at about 3 USD.
84
+ """)
85
+ gr.Image(value="https://blog.float16.cloud/content/images/2024/08/IMG_A29E8E5DD82D-1.jpeg", width=740, height=880)
86
+ gr.Markdown(
87
+ """
88
  Another option is the restaurants at Central World.
89
+ Central World is one of the most famous shopping malls in Bangkok.
90
+ You can find any food style at Central World.
91
+ """)
92
+ gr.Image(value="https://image.posttoday.com/media/content/2020/12/14/AF1F5A1E3784AF56AFCE307BE3C2E27B.jpg?x-image-process=style/lg-webp", width=740, height=600)
93
+ gr.Markdown(
94
+ """
95
+ ---
96
+
97
+ ### Coffee
98
  I highly recommend Starbucks. The pricing is about 5 USD.
99
  Starbucks is a good spot for waiting and discussing. At Central World, they have four Starbucks locations.
100
  The first Starbucks Reserve is on the first floor.
101
+ """)
102
+ gr.Image(value="https://images.lifestyleasia.com/wp-content/uploads/2018/06/14174814/Starbucks-Thailand-CentralWorld-9-copy.jpg", width=740, height=420)
103
+ gr.Markdown(
104
+ """
105
  The second Starbucks is on the second floor near the BTS Skywalk.
106
+ """)
107
+ gr.Image(value="https://st-th-1.byteark.com/assets.punpro.com/contents/i9805/1596293811827-Starbucks_200801_0004.png", width=740, height=420)
108
+ gr.Markdown(
109
+ """
110
  The third Starbucks is on the third floor.
111
+ """)
112
+ gr.Image(value="https://st-th-1.byteark.com/assets.punpro.com/contents/i9805/1596293815923-Starbucks_200801_0011.png", width=740, height=420)
113
+ gr.Markdown(
114
+ """
115
  The last Starbucks is on the fifth floor.
116
+ """)
117
+ gr.Image(value="https://st-th-1.byteark.com/assets.punpro.com/contents/i9805/1596528555406-S__21119055.jpg", width=740, height=420)
118
+ gr.Markdown(
119
+ """
120
+ ---
121
+
122
+ ### Medicine
123
  I recommend using GrabMart to buy medicine.
124
+ """)
125
+ gr.Image(value="https://blog.float16.cloud/content/images/2024/08/IMG_612D5DB647F2-1.jpeg", width=740, height=880)
126
+ gr.Markdown(
127
+ """
128
  For stores, you can choose either Boots or Watsons. Both of them have pharmacists available in the shop.
129
+ """)
130
+ gr.Image(value="https://brandinside.asia/wp-content/uploads/2019/05/shutterstock_198017516-e1559121343456.jpg", width=740, height=480)
131
+ gr.Image(value="https://i0.wp.com/chaileedo.com/wp-content/uploads/2023/06/file-q3FZXT.png?fit=1000%2C562&ssl=1", width=740, height=480)
132
+ gr.Markdown(
133
+ """
134
+ ---
135
+
136
+ ### People and Language
137
  Thai people mostly use transliterated English words for venues, locations, and coffee menus.
138
  A few Thai people can speak Chinese, but it's not guaranteed.
139
  Google Translate is not very good for translating English to Thai or Chinese to Thai.
140
+
141
+ ---
142
+
143
+ ### Recommended activities
144
  For personal advice, I highly recommend getting any 'Oral treatment' because of the price.
145
  You can search on Google Maps to find a dental clinic near your hotel.
146
+
147
+ ---
148
+
149
+ ### Farewell
150
  Hope you guys enjoy this guidebook and find it useful.
151
  If you need any help, please reach out to me via the Discord #ACL2024 channel or on X.
152
+
153
+ [Discord](https://discord.com/invite/j2DVTMjr67?ref=blog.float16.cloud)
 
 
 
 
 
 
154
 
155
+ [X](https://twitter.com/KMatiDev1?ref=blog.float16.cloud)
156
+
157
+ ---
 
 
 
 
 
 
 
 
158
 
159
+ ### About [Float16.cloud](Float16.cloud)
160
+ Float16.cloud provides a managed GPU resource platform for developers.
161
+ This includes modern GPU services like LLM as a Service, one-click deployment, serverless GPU, one-click training, and more features coming in the future.
162
+ If you need emergency H100 sponsor please contact me.
163
+ """)
164
  # Launch the interface
165
  iface.launch()