CobaltZvc commited on
Commit
2c5eaa9
1 Parent(s): d85f86a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -15
app.py CHANGED
@@ -180,16 +180,16 @@ st.title("How can I help?")
180
  option_ = ['Random Questions','Questions based on custom CSV data']
181
  Usage = st.selectbox('Select an option:', option_)
182
  if Usage == 'Questions based on custom CSV data':
183
- st.text('''Upload any CSV file and ask questions based on the contents of the file.
184
- Example:
185
- If I have a CSV file having data on cars, I could ask:
186
- - How many cars were manufactured each year between 2000 to 2008?
187
-
188
- The feature returns a SQL query based on your question and if the returned
189
- data has atleast 2 columns then a graph will also be returned.''')
190
 
191
  option = ['Sample_Cars_csv','Upload_csv']
192
- res = st.selectbox('Select the Upload_csv option:',option)
193
  if res == 'Upload_csv':
194
  uploaded_file = st.file_uploader("Add dataset (csv) ",type=['csv'])
195
  if uploaded_file is not None:
@@ -335,13 +335,14 @@ if Usage == 'Questions based on custom CSV data':
335
 
336
 
337
  elif Usage == 'Random Questions':
338
- st.text('''You can ask me for:
339
- 1. News
340
- 2. Stock prices
341
- 3. Music
342
- 4. Joke
343
- 5. Definitions
344
- 6. Paintings, Images, Photos''')
 
345
 
346
  Input_type = st.radio(
347
  "**Input type:**",
 
180
  option_ = ['Random Questions','Questions based on custom CSV data']
181
  Usage = st.selectbox('Select an option:', option_)
182
  if Usage == 'Questions based on custom CSV data':
183
+ st.text('''
184
+ You can use your own custom csv files to test this feature or
185
+ you can use the sample csv file which contains data about cars.
186
+
187
+ Example question:
188
+ - How many cars were manufactured each year between 2000 to 2008?
189
+ ''')
190
 
191
  option = ['Sample_Cars_csv','Upload_csv']
192
+ res = st.selectbox('Select from below options:',option)
193
  if res == 'Upload_csv':
194
  uploaded_file = st.file_uploader("Add dataset (csv) ",type=['csv'])
195
  if uploaded_file is not None:
 
335
 
336
 
337
  elif Usage == 'Random Questions':
338
+ st.text('''You can ask me:
339
+ 1. All the things you ask ChatGPT.
340
+ 2. Generating paintings, drawings, abstract art.
341
+ 3. Music or Videos
342
+ 4. Weather
343
+ 5. Stocks
344
+ 6. Current Affairs and News.
345
+ 7. Create or compose tweets or Linkedin posts or email.''')
346
 
347
  Input_type = st.radio(
348
  "**Input type:**",