Spaces:
Runtime error
Runtime error
taskswithcode
commited on
Commit
•
942d759
1
Parent(s):
042b8a4
URL fixes
Browse files
app.py
CHANGED
@@ -85,6 +85,8 @@ model_names = [
|
|
85 |
"sota_link":"https://paperswithcode.com/paper/sgpt-gpt-sentence-embeddings-for-semantic",
|
86 |
},
|
87 |
"paper_url":"https://arxiv.org/abs/2202.08904v5",
|
|
|
|
|
88 |
"mark":True,
|
89 |
"class":"SGPTModel"},
|
90 |
{ "name":"SGPT-5.8B",
|
@@ -92,6 +94,8 @@ model_names = [
|
|
92 |
"fork_url":"https://github.com/taskswithcode/sgpt",
|
93 |
"orig_author_url":"https://github.com/Muennighoff",
|
94 |
"orig_author":"Niklas Muennighoff",
|
|
|
|
|
95 |
"sota_info": {
|
96 |
"task":"#1 in multiple information retrieval & search tasks",
|
97 |
"sota_link":"https://paperswithcode.com/paper/sgpt-gpt-sentence-embeddings-for-semantic",
|
@@ -145,7 +149,11 @@ def construct_model_info_for_display():
|
|
145 |
for node in model_names:
|
146 |
options_arr .append(node["name"])
|
147 |
if (node["mark"] == True):
|
148 |
-
markdown_str += f"<div style=\"font-size:16px; color: #5f5f5f; text-align: left\"> • Model: <a href=\'{node['paper_url']}\' target='_blank'>{node['name']}</a><br/> Code released by: <a href=\'{node['orig_author_url']}\' target='_blank'>{node['orig_author']}</a><br/> Model info: <a href=\'{node['sota_info']['sota_link']}\' target='_blank'>{node['sota_info']['task']}</a
|
|
|
|
|
|
|
|
|
149 |
markdown_str += "<div style=\"font-size:12px; color: #9f9f9f; text-align: left\"><b>Note:</b><br/>• Uploaded files are loaded into non-persistent memory for the duration of the computation. They are not saved</div>"
|
150 |
limit = "{:,}".format(MAX_INPUT)
|
151 |
markdown_str += f"<div style=\"font-size:12px; color: #9f9f9f; text-align: left\">• User uploaded file has a maximum limit of {limit} sentences.</div>"
|
|
|
85 |
"sota_link":"https://paperswithcode.com/paper/sgpt-gpt-sentence-embeddings-for-semantic",
|
86 |
},
|
87 |
"paper_url":"https://arxiv.org/abs/2202.08904v5",
|
88 |
+
"Note":"If this large model fails to load , try this ",
|
89 |
+
"alt_url":"http://www.taskswithcode.com/sentence_similarity/",
|
90 |
"mark":True,
|
91 |
"class":"SGPTModel"},
|
92 |
{ "name":"SGPT-5.8B",
|
|
|
94 |
"fork_url":"https://github.com/taskswithcode/sgpt",
|
95 |
"orig_author_url":"https://github.com/Muennighoff",
|
96 |
"orig_author":"Niklas Muennighoff",
|
97 |
+
"Note":"If this large model fails to load , try this ",
|
98 |
+
"alt_url":"http://www.taskswithcode.com/sentence_similarity/",
|
99 |
"sota_info": {
|
100 |
"task":"#1 in multiple information retrieval & search tasks",
|
101 |
"sota_link":"https://paperswithcode.com/paper/sgpt-gpt-sentence-embeddings-for-semantic",
|
|
|
149 |
for node in model_names:
|
150 |
options_arr .append(node["name"])
|
151 |
if (node["mark"] == True):
|
152 |
+
markdown_str += f"<div style=\"font-size:16px; color: #5f5f5f; text-align: left\"> • Model: <a href=\'{node['paper_url']}\' target='_blank'>{node['name']}</a><br/> Code released by: <a href=\'{node['orig_author_url']}\' target='_blank'>{node['orig_author']}</a><br/> Model info: <a href=\'{node['sota_info']['sota_link']}\' target='_blank'>{node['sota_info']['task']}</a></div>"
|
153 |
+
if ("Note" in node):
|
154 |
+
markdown_str += f"<div style=\"font-size:16px; color: #dd1515; text-align: left\"> {node['Note']}<a href=\'{node['alt_url']}\' target='_blank'>link</a></div>"
|
155 |
+
markdown_str += "<div style=\"font-size:16px; color: #5f5f5f; text-align: left\"><br/></div>"
|
156 |
+
|
157 |
markdown_str += "<div style=\"font-size:12px; color: #9f9f9f; text-align: left\"><b>Note:</b><br/>• Uploaded files are loaded into non-persistent memory for the duration of the computation. They are not saved</div>"
|
158 |
limit = "{:,}".format(MAX_INPUT)
|
159 |
markdown_str += f"<div style=\"font-size:12px; color: #9f9f9f; text-align: left\">• User uploaded file has a maximum limit of {limit} sentences.</div>"
|