Spaces:
Sleeping
Sleeping
ImpactInsights
commited on
Commit
•
e21752a
1
Parent(s):
0dac12d
Update app.py
Browse files
app.py
CHANGED
@@ -4,23 +4,28 @@ import torch
|
|
4 |
|
5 |
|
6 |
#Dashboard Title
|
7 |
-
st.title("Food Security")
|
8 |
|
9 |
-
#Sidebar
|
10 |
st.sidebar.title('Settings')
|
11 |
-
st.sidebar.subheader('Time Series Data')
|
12 |
-
st.sidebar.subheader('
|
13 |
|
14 |
|
|
|
|
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
#check_box = st.sidebar.checkbox(label = 'Display Data')
|
17 |
|
18 |
|
19 |
|
20 |
-
pipe = pipeline("sentiment-analysis")
|
21 |
-
text = st.text_area("enter your text here")
|
22 |
|
23 |
-
if text:
|
24 |
-
out = pipe(text)
|
25 |
-
st.json(out)
|
26 |
|
|
|
4 |
|
5 |
|
6 |
#Dashboard Title
|
7 |
+
st.title("Food Security in Africa and Asia")
|
8 |
|
9 |
+
#Sidebar menu
|
10 |
st.sidebar.title('Settings')
|
11 |
+
time_series = st.sidebar.subheader('Time Series Data')
|
12 |
+
chatbot = st.sidebar.subheader('Chatbot')
|
13 |
|
14 |
|
15 |
+
if time_series:
|
16 |
+
pass
|
17 |
|
18 |
+
if chatbot:
|
19 |
+
pipe = pipeline("sentiment-analysis")
|
20 |
+
text = st.text_area("enter your text here")
|
21 |
+
|
22 |
+
if text:
|
23 |
+
out = pipe(text)
|
24 |
+
st.json(out)
|
25 |
+
|
26 |
#check_box = st.sidebar.checkbox(label = 'Display Data')
|
27 |
|
28 |
|
29 |
|
|
|
|
|
30 |
|
|
|
|
|
|
|
31 |
|