nlpblogs commited on
Commit
9693578
·
verified ·
1 Parent(s): 83b9128

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -14,11 +14,17 @@ expander = st.expander("**Important notes on the AI CSV and XLSX Data Analyzer**
14
  expander.write(
15
  """
16
  **Supported File Formats:** This app accepts files in .csv and .xlsx formats.
 
17
  **How to Use:** Upload your file first. Select two different columns from your data to visualize in a Tree Map. Then, type your question into the text area provided and click the 'Retrieve your answer' button.
 
18
  **Tree Map:** Your uploaded data is presented in an interactive Tree Map for visual exploration. Click on any area within the map to access specific data insights.
 
19
  **Usage Limits:** You can ask up to 5 questions.
 
20
  **Subscription Management:** This app offers a one-day free trial, followed by a one-day subscription, expiring after 24 hours. If you are interested in building your own AI CSV and XLSX Data Analyzer, we invite you to explore our NLP Web App Store on our website. You can select your desired features, place your order, and we will deliver your custom app in five business days. If you wish to delete your Account with us, please contact us at [email protected]
 
21
  **Customization:** To change the app's background color to white or black, click the three-dot menu on the right-hand side of your app, go to Settings and then Choose app theme, colors and fonts.
 
22
  **File Handling and Errors:** (a) The app may provide an inaccurate answer if the information is missing from the relevant cell. (b) The app may display an error message if your file has errors, date values or float numbers (0.5, 1.2, 4.5 etc.).
23
  For any errors or inquiries, please contact us at [email protected]
24
  """
@@ -38,12 +44,12 @@ with st.sidebar:
38
 
39
  if "question_attempts" not in st.session_state:
40
  st.session_state["question_attempts"] = 0
41
- max_attempts = 5
42
  MAX_FILE_SIZE_KB = 10
43
  MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_KB * 1024
44
 
45
  upload_file = st.file_uploader(
46
- f"Upload your file (max {MAX_FILE_SIZE_KB} KB). Accepted file formats include: .csv, .xlsx",
47
  type=['csv', 'xlsx']
48
  )
49
 
 
14
  expander.write(
15
  """
16
  **Supported File Formats:** This app accepts files in .csv and .xlsx formats.
17
+
18
  **How to Use:** Upload your file first. Select two different columns from your data to visualize in a Tree Map. Then, type your question into the text area provided and click the 'Retrieve your answer' button.
19
+
20
  **Tree Map:** Your uploaded data is presented in an interactive Tree Map for visual exploration. Click on any area within the map to access specific data insights.
21
+
22
  **Usage Limits:** You can ask up to 5 questions.
23
+
24
  **Subscription Management:** This app offers a one-day free trial, followed by a one-day subscription, expiring after 24 hours. If you are interested in building your own AI CSV and XLSX Data Analyzer, we invite you to explore our NLP Web App Store on our website. You can select your desired features, place your order, and we will deliver your custom app in five business days. If you wish to delete your Account with us, please contact us at [email protected]
25
+
26
  **Customization:** To change the app's background color to white or black, click the three-dot menu on the right-hand side of your app, go to Settings and then Choose app theme, colors and fonts.
27
+
28
  **File Handling and Errors:** (a) The app may provide an inaccurate answer if the information is missing from the relevant cell. (b) The app may display an error message if your file has errors, date values or float numbers (0.5, 1.2, 4.5 etc.).
29
  For any errors or inquiries, please contact us at [email protected]
30
  """
 
44
 
45
  if "question_attempts" not in st.session_state:
46
  st.session_state["question_attempts"] = 0
47
+ max_attempts = 10
48
  MAX_FILE_SIZE_KB = 10
49
  MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_KB * 1024
50
 
51
  upload_file = st.file_uploader(
52
+ f"Upload your file **max 10 KB**. Accepted file formats include: .csv, .xlsx",
53
  type=['csv', 'xlsx']
54
  )
55