Spaces:
Sleeping
Sleeping
Fix var text assignment
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def load_tab():
|
|
44 |
with st.spinner('Wait for it...'):
|
45 |
st.sidebar.write(f'**Bart-Large-Cnn: **{predict_model_bart(text)}')
|
46 |
else:
|
47 |
-
error_message = st.sidebar.error(f'
|
48 |
|
49 |
button_clicked = st.sidebar.button("Rename the tab", on_click=load_tab())
|
50 |
|
@@ -59,11 +59,11 @@ with st.status("Loading models...", expanded=True, state="complete") as models:
|
|
59 |
get_tidy_tab_t5()
|
60 |
st.write("Loaded T5-Small...")
|
61 |
|
62 |
-
st.write("
|
63 |
get_tidy_tab_pegasus()
|
64 |
st.write("Loaded Pegasus xsum...")
|
65 |
|
66 |
-
st.write("
|
67 |
load_model_bart()
|
68 |
st.write("Loaded Pegasus Bart-Large...")
|
69 |
|
|
|
44 |
with st.spinner('Wait for it...'):
|
45 |
st.sidebar.write(f'**Bart-Large-Cnn: **{predict_model_bart(text)}')
|
46 |
else:
|
47 |
+
error_message = st.sidebar.error(f'Is not a valid URL. Please enter a valid URL.')
|
48 |
|
49 |
button_clicked = st.sidebar.button("Rename the tab", on_click=load_tab())
|
50 |
|
|
|
59 |
get_tidy_tab_t5()
|
60 |
st.write("Loaded T5-Small...")
|
61 |
|
62 |
+
st.write("Loading from https://huggingface.co/wgcv/tidy-tab-model-pegasus-xsum")
|
63 |
get_tidy_tab_pegasus()
|
64 |
st.write("Loaded Pegasus xsum...")
|
65 |
|
66 |
+
st.write("Loading from https://huggingface.co/wgcv/tidy-tab-model-bart-large-cnn")
|
67 |
load_model_bart()
|
68 |
st.write("Loaded Pegasus Bart-Large...")
|
69 |
|