trminhnam20082002 commited on
Commit
ca03794
·
1 Parent(s): e1ba036

feat: add main menu options and scripts

Browse files
Files changed (2) hide show
  1. app.py +2 -0
  2. resources/examples.csv +3 -1
app.py CHANGED
@@ -29,6 +29,8 @@ TEXT_2_SQL_API = os.environ.get(
29
  "TEXT_2_SQL_API", "http://213.181.122.2:40057/api/text2sql/ask"
30
  )
31
 
 
 
32
 
33
  @st.cache_resource
34
  def load_database():
 
29
  "TEXT_2_SQL_API", "http://213.181.122.2:40057/api/text2sql/ask"
30
  )
31
 
32
+ os.remove("resources/ai_app.db")
33
+
34
 
35
  @st.cache_resource
36
  def load_database():
resources/examples.csv CHANGED
@@ -20,4 +20,6 @@ CREATE TABLE district (id number, name text, prefix text, province_id number);
20
  CREATE TABLE province (id number, name text, code text)
21
  CREATE TABLE product (id number, category text, name text, description text, price number, duration number, data_amount number, voice_amount number, sms_amount number);
22
 
23
- product.voice_amount is the call capacity, product.data_amount is the internet data capacity, product.sms_amount is the maximum number of sms messages can be sent", Tìm sản phẩm có dung lượng cuộc gọi lớn nhất
 
 
 
20
  CREATE TABLE province (id number, name text, code text)
21
  CREATE TABLE product (id number, category text, name text, description text, price number, duration number, data_amount number, voice_amount number, sms_amount number);
22
 
23
+ product.voice_amount is the call capacity.
24
+ product.data_amount is the internet data capacity.
25
+ product.sms_amount is the maximum number of sms messages can be sent.", Tìm sản phẩm có dung lượng cuộc gọi lớn nhất