Spaces:
Runtime error
Runtime error
import numpy as np # linear algebra | |
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) | |
from transformers import AutoTokenizer | |
from transformers import TFAutoModelForQuestionAnswering | |
from datasets import Dataset | |
#prompts | |
st.title("Tweet Sentiment Extractor...") | |
# take text/tweet input | |
textbox = st.text_area('Write your text in this box:', '',height=100, max_chars=500 ) | |
option = st.selectbox( | |
'How would you like to be contacted?', | |
('Email', 'Home phone', 'Mobile phone')) | |
st.write('You selected:', option) | |
#MAX_LENGTH = 105 | |
#dataset = Dataset.from_dict(X) | |