Chatop commited on
Commit
aad0901
1 Parent(s): 6525040

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,12 +10,12 @@ Original file is located at
10
  import streamlit as st
11
  from transformers import pipeline
12
 
13
- classifier = pipeline("sentiment-analysis", model="distilbert-base-uncased-finetuned-sst-2-english")
14
  def main():
15
- st.title("Sentiment analysis")
16
 
17
  with st.form("text_field"):
18
- text = st.text_area('enter some text:')
19
  # clicked==True only when the button is clicked
20
  clicked = st.form_submit_button("Submit")
21
  if clicked:
 
10
  import streamlit as st
11
  from transformers import pipeline
12
 
13
+ classifier = pipeline("question-answering", model="roberta-base for QA")
14
  def main():
15
+ st.title("Question & Answering")
16
 
17
  with st.form("text_field"):
18
+ text = st.text_area('Enter question:')
19
  # clicked==True only when the button is clicked
20
  clicked = st.form_submit_button("Submit")
21
  if clicked: