Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ basecss = """
|
|
31 |
color: #222;
|
32 |
}"""
|
33 |
jscode = """
|
34 |
-
|
35 |
function copyToClipboard(container) {
|
36 |
if (!container) return; // if container is undefined, do nothing
|
37 |
const titleElement = container.querySelector(".extra-info-paperid");
|
@@ -42,7 +42,7 @@ function copyToClipboard(container) {
|
|
42 |
tempTextArea.select();
|
43 |
document.execCommand("copy");
|
44 |
document.body.removeChild(tempTextArea);
|
45 |
-
}
|
46 |
"""
|
47 |
def get_papers():
|
48 |
return fs.glob(datasetdir+"**.md")
|
@@ -83,7 +83,7 @@ def get_papers_metadata(papiers=None):
|
|
83 |
|
84 |
def make_paper_card(md):
|
85 |
html = f"""
|
86 |
-
<div class="caaard-container"
|
87 |
<div class="title">{md["title"]}</div>
|
88 |
<br><br>
|
89 |
<div class="extra-info">author: {md["author"]}</div>
|
|
|
31 |
color: #222;
|
32 |
}"""
|
33 |
jscode = """
|
34 |
+
/*
|
35 |
function copyToClipboard(container) {
|
36 |
if (!container) return; // if container is undefined, do nothing
|
37 |
const titleElement = container.querySelector(".extra-info-paperid");
|
|
|
42 |
tempTextArea.select();
|
43 |
document.execCommand("copy");
|
44 |
document.body.removeChild(tempTextArea);
|
45 |
+
} */
|
46 |
"""
|
47 |
def get_papers():
|
48 |
return fs.glob(datasetdir+"**.md")
|
|
|
83 |
|
84 |
def make_paper_card(md):
|
85 |
html = f"""
|
86 |
+
<div class="caaard-container" title="{md["abstract"]}">>
|
87 |
<div class="title">{md["title"]}</div>
|
88 |
<br><br>
|
89 |
<div class="extra-info">author: {md["author"]}</div>
|