Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,20 +30,6 @@ basecss = """
|
|
30 |
line-height: 1.5;
|
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");
|
38 |
-
const titleText = titleElement.textContent;
|
39 |
-
const tempTextArea = document.createElement("textarea");
|
40 |
-
tempTextArea.value = titleText;
|
41 |
-
document.body.appendChild(tempTextArea);
|
42 |
-
tempTextArea.select();
|
43 |
-
document.execCommand("copy");
|
44 |
-
document.body.removeChild(tempTextArea);
|
45 |
-
} */
|
46 |
-
"""
|
47 |
def get_papers():
|
48 |
return fs.glob(datasetdir+"**.md")
|
49 |
def get_papers_metadata(papiers=None):
|
@@ -155,7 +141,7 @@ paperid: {paperid}
|
|
155 |
f.write(raw)
|
156 |
def makepreview(x):
|
157 |
return x
|
158 |
-
with gr.Blocks(css=basecss,
|
159 |
gr.Image("./blue-arxiv.png", container=False, label=None, interactive=False, show_fullscreen_button=False, show_share_button=False, show_download_button=False)
|
160 |
with gr.Tab("search"):
|
161 |
with gr.Row():
|
|
|
30 |
line-height: 1.5;
|
31 |
color: #222;
|
32 |
}"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
def get_papers():
|
34 |
return fs.glob(datasetdir+"**.md")
|
35 |
def get_papers_metadata(papiers=None):
|
|
|
141 |
f.write(raw)
|
142 |
def makepreview(x):
|
143 |
return x
|
144 |
+
with gr.Blocks(css=basecss, theme='NoCrypt/miku') as demo:
|
145 |
gr.Image("./blue-arxiv.png", container=False, label=None, interactive=False, show_fullscreen_button=False, show_share_button=False, show_download_button=False)
|
146 |
with gr.Tab("search"):
|
147 |
with gr.Row():
|