Chatbot / app.py
ImpactInsights's picture
Update app.py
e21752a verified
raw
history blame
No virus
532 Bytes
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')