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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +74 -4
app.py CHANGED
@@ -1,7 +1,77 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
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()