yoinked commited on
Commit
2fa4815
Β·
verified Β·
1 Parent(s): 96e61f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -31,7 +31,7 @@ basecss = """
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,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("search")
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)