Spaces:
Build error
Build error
Commit
·
74b1387
1
Parent(s):
3981553
column width
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ trained_model, tokenizer, test, NER = load_model()
|
|
| 62 |
st.header("Try out a text!")
|
| 63 |
with st.form('model_prediction'):
|
| 64 |
text = st.text_area("Input Text", " ".join(test.iloc[0]['text'])[:1525])
|
| 65 |
-
n1, n2, n3 = st.columns((0.
|
| 66 |
ner_check = n1.checkbox("Extract Location and Date", value=True)
|
| 67 |
predict = n2.form_submit_button("Predict")
|
| 68 |
with st.spinner("Predicting..."):
|
|
@@ -103,7 +103,7 @@ with st.form('model_prediction'):
|
|
| 103 |
|
| 104 |
st.header("Predict on test data")
|
| 105 |
with st.form('model_test_prediction'):
|
| 106 |
-
s1, s2, s3 = st.columns((0.
|
| 107 |
top = s1.number_input("Count",1, len(test), value=10)
|
| 108 |
ner_check2 = s2.checkbox("Extract Location and Date", value=True)
|
| 109 |
predict2 = s2.form_submit_button("Predict")
|
|
|
|
| 62 |
st.header("Try out a text!")
|
| 63 |
with st.form('model_prediction'):
|
| 64 |
text = st.text_area("Input Text", " ".join(test.iloc[0]['text'])[:1525])
|
| 65 |
+
n1, n2, n3 = st.columns((0.2,0.4,0.4))
|
| 66 |
ner_check = n1.checkbox("Extract Location and Date", value=True)
|
| 67 |
predict = n2.form_submit_button("Predict")
|
| 68 |
with st.spinner("Predicting..."):
|
|
|
|
| 103 |
|
| 104 |
st.header("Predict on test data")
|
| 105 |
with st.form('model_test_prediction'):
|
| 106 |
+
s1, s2, s3 = st.columns((0.2, 0.4, 0.4))
|
| 107 |
top = s1.number_input("Count",1, len(test), value=10)
|
| 108 |
ner_check2 = s2.checkbox("Extract Location and Date", value=True)
|
| 109 |
predict2 = s2.form_submit_button("Predict")
|