Spaces:
Runtime error
Runtime error
Commit
Β·
752965a
1
Parent(s):
83a539b
Upload 3 files
Browse files
app.py
CHANGED
@@ -15,11 +15,14 @@ st.session_state['new']=True
|
|
15 |
|
16 |
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
|
17 |
|
|
|
18 |
|
19 |
# creating the q/a pipeline
|
20 |
nlp = pipeline('question-answering', model='deepset/roberta-base-squad2', tokenizer='deepset/roberta-base-squad2')
|
21 |
|
22 |
-
text =
|
|
|
|
|
23 |
|
24 |
st.markdown('---')
|
25 |
ques=st.text_input('Ask Me Anything From The Information You Have Given')
|
|
|
15 |
|
16 |
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
|
17 |
|
18 |
+
form = st.form(key='my_form')
|
19 |
|
20 |
# creating the q/a pipeline
|
21 |
nlp = pipeline('question-answering', model='deepset/roberta-base-squad2', tokenizer='deepset/roberta-base-squad2')
|
22 |
|
23 |
+
text = form.text_area('Gimme Stuff To Study π')
|
24 |
+
|
25 |
+
submit_button = form.form_submit_button(label='Submit')
|
26 |
|
27 |
st.markdown('---')
|
28 |
ques=st.text_input('Ask Me Anything From The Information You Have Given')
|