File size: 532 Bytes
1586e72
 
5d25df8
1586e72
0dac12d
 
e21752a
0dac12d
e21752a
0dac12d
e21752a
 
0dac12d
 
e21752a
 
0dac12d
e21752a
 
 
 
 
 
 
 
0dac12d
 
 
 
1586e72
0dac12d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import streamlit as st
from transformers import pipeline
import torch


#Dashboard Title
st.title("Food Security in Africa and Asia")

#Sidebar menu
st.sidebar.title('Settings')
time_series = st.sidebar.subheader('Time Series Data')
chatbot = st.sidebar.subheader('Chatbot')


if time_series:
    pass

if chatbot:
    pipe = pipeline("sentiment-analysis")
    text = st.text_area("enter your text here")

    if text:
        out = pipe(text)
        st.json(out)
    
#check_box = st.sidebar.checkbox(label = 'Display Data')