Spaces:
Runtime error
Runtime error
taskswithcode
commited on
Commit
•
2bbc0fd
1
Parent(s):
47ac844
Fixes
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def construct_model_info_for_display(model_names):
|
|
75 |
return options_arr,markdown_str
|
76 |
|
77 |
|
78 |
-
st.set_page_config(page_title='TWC - Compare popular/state-of-the-art models for
|
79 |
menu_items={
|
80 |
'About': 'This app was created by taskswithcode. http://taskswithcode.com'
|
81 |
|
@@ -196,7 +196,7 @@ def app_main(app_mode,example_files,model_name_files):
|
|
196 |
with open(model_name_files) as fp:
|
197 |
model_names = json.load(fp)
|
198 |
curr_use_case = use_case[app_mode].split(".")[0]
|
199 |
-
st.markdown("<h5 style='text-align: center;'>Compare popular/state-of-the-art models for
|
200 |
st.markdown(f"<p style='font-size:14px; color: #4f4f4f; text-align: center'><i>Or compare your own model with state-of-the-art/popular models</p>", unsafe_allow_html=True)
|
201 |
st.markdown(f"<div style='color: #4f4f4f; text-align: left'>Use cases for sentence embeddings<br/> • <a href=\'{use_case_url['1']}\' target='_blank'>{use_case['1']}</a><br/> • {use_case['2']}<br/> • <a href=\'{use_case_url['3']}\' target='_blank'>{use_case['3']}</a><br/><i>This app illustrates <b>'{curr_use_case}'</b> use case</i></div>", unsafe_allow_html=True)
|
202 |
st.markdown(f"<div style='color: #9f9f9f; text-align: right'>views: {get_views('init')}</div>", unsafe_allow_html=True)
|
|
|
75 |
return options_arr,markdown_str
|
76 |
|
77 |
|
78 |
+
st.set_page_config(page_title='TWC - Compare popular/state-of-the-art models for semantic search using sentence embeddings', page_icon="logo.jpg", layout='centered', initial_sidebar_state='auto',
|
79 |
menu_items={
|
80 |
'About': 'This app was created by taskswithcode. http://taskswithcode.com'
|
81 |
|
|
|
196 |
with open(model_name_files) as fp:
|
197 |
model_names = json.load(fp)
|
198 |
curr_use_case = use_case[app_mode].split(".")[0]
|
199 |
+
st.markdown("<h5 style='text-align: center;'>Compare popular/state-of-the-art models for <b>semantic search</b> using sentence embeddings</h5>", unsafe_allow_html=True)
|
200 |
st.markdown(f"<p style='font-size:14px; color: #4f4f4f; text-align: center'><i>Or compare your own model with state-of-the-art/popular models</p>", unsafe_allow_html=True)
|
201 |
st.markdown(f"<div style='color: #4f4f4f; text-align: left'>Use cases for sentence embeddings<br/> • <a href=\'{use_case_url['1']}\' target='_blank'>{use_case['1']}</a><br/> • {use_case['2']}<br/> • <a href=\'{use_case_url['3']}\' target='_blank'>{use_case['3']}</a><br/><i>This app illustrates <b>'{curr_use_case}'</b> use case</i></div>", unsafe_allow_html=True)
|
202 |
st.markdown(f"<div style='color: #9f9f9f; text-align: right'>views: {get_views('init')}</div>", unsafe_allow_html=True)
|