Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ basecss = """
|
|
31 |
color: #222;
|
32 |
}"""
|
33 |
def get_papers():
|
34 |
-
return fs.glob(datasetdir+"
|
35 |
def get_papers_metadata(papiers=None):
|
36 |
metadatas = []
|
37 |
if papiers is None:
|
@@ -146,9 +146,9 @@ with gr.Blocks(css=basecss, theme='NoCrypt/miku') as demo:
|
|
146 |
with gr.Tab("search"):
|
147 |
with gr.Row():
|
148 |
query = gr.Textbox(label="tags (optional, comma seperated)", lines=1, interactive=True)
|
149 |
-
searchbutton = gr.Button("
|
150 |
with gr.Row():
|
151 |
-
papercards = gr.HTML()
|
152 |
with gr.Tab("read"):
|
153 |
with gr.Row():
|
154 |
paperid = gr.Textbox(label="paper id", lines=1, interactive=True)
|
|
|
31 |
color: #222;
|
32 |
}"""
|
33 |
def get_papers():
|
34 |
+
return fs.glob(datasetdir+"*.md")
|
35 |
def get_papers_metadata(papiers=None):
|
36 |
metadatas = []
|
37 |
if papiers is None:
|
|
|
146 |
with gr.Tab("search"):
|
147 |
with gr.Row():
|
148 |
query = gr.Textbox(label="tags (optional, comma seperated)", lines=1, interactive=True)
|
149 |
+
searchbutton = gr.Button("π")
|
150 |
with gr.Row():
|
151 |
+
papercards = gr.HTML("Click the π to load all papers!")
|
152 |
with gr.Tab("read"):
|
153 |
with gr.Row():
|
154 |
paperid = gr.Textbox(label="paper id", lines=1, interactive=True)
|