Update app.py
Browse files
app.py
CHANGED
@@ -13,15 +13,8 @@ def preprocess_text(text):
|
|
13 |
return text
|
14 |
|
15 |
# Add a model selector to the sidebar
|
16 |
-
q_model =
|
17 |
-
|
18 |
-
('ck46/t5-base-hotpot-qa-qg', 'ck46/t5-small-hotpot-qa-qg')
|
19 |
-
)
|
20 |
-
|
21 |
-
a_model = st.sidebar.selectbox(
|
22 |
-
'Select Answer Extraction Model',
|
23 |
-
('ck46/t5-base-hotpot-qa-qg', 'ck46/t5-small-hotpot-qa-qg')
|
24 |
-
)
|
25 |
|
26 |
st.header('Question-Answer Generation')
|
27 |
st.write(f'Model: {q_model}')
|
|
|
13 |
return text
|
14 |
|
15 |
# Add a model selector to the sidebar
|
16 |
+
q_model = 'ck46/t5-base-hotpot-qa-qg'
|
17 |
+
a_model = 'ck46/t5-base-hotpot-qa-qg'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
st.header('Question-Answer Generation')
|
20 |
st.write(f'Model: {q_model}')
|