Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -183,6 +183,14 @@ Usage = st.radio(
|
|
183 |
)
|
184 |
|
185 |
if Usage == 'Questions based on custom CSV data':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
option = ['Reset','Upload_csv']
|
187 |
res = st.selectbox('Select the Upload_csv option:',option)
|
188 |
if res == 'Upload_csv':
|
@@ -263,12 +271,12 @@ if Usage == 'Questions based on custom CSV data':
|
|
263 |
|
264 |
elif Usage == 'Random Questions':
|
265 |
st.text('''You can ask me for:
|
266 |
-
1
|
267 |
-
2
|
268 |
-
3
|
269 |
-
4
|
270 |
-
5
|
271 |
-
6
|
272 |
|
273 |
Input_type = st.radio(
|
274 |
"**Input type:**",
|
|
|
183 |
)
|
184 |
|
185 |
if Usage == 'Questions based on custom CSV data':
|
186 |
+
st.text('''Upload any CSV file and ask questions based on the contents of the file.
|
187 |
+
|
188 |
+
Example:
|
189 |
+
If I have a CSV file having data on cars, I could ask:
|
190 |
+
- How many cars were manufactured each year between 2000 to 2008?
|
191 |
+
|
192 |
+
The feature returns a SQL query based on your question and if the returned data has atleast 2 columns then a graph will also be returned''')
|
193 |
+
|
194 |
option = ['Reset','Upload_csv']
|
195 |
res = st.selectbox('Select the Upload_csv option:',option)
|
196 |
if res == 'Upload_csv':
|
|
|
271 |
|
272 |
elif Usage == 'Random Questions':
|
273 |
st.text('''You can ask me for:
|
274 |
+
1. News
|
275 |
+
2. Stock prices
|
276 |
+
3. Music
|
277 |
+
4. Joke
|
278 |
+
5. Definitions
|
279 |
+
6. Paintings, Images, Photos''')
|
280 |
|
281 |
Input_type = st.radio(
|
282 |
"**Input type:**",
|