Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -147,6 +147,7 @@ paperid: {paperid}
|
|
147 |
raw = metadata + data
|
148 |
f.write(raw)
|
149 |
def makepreview(x):
|
|
|
150 |
return x
|
151 |
with gr.Blocks(css=basecss, js=jscode, theme='NoCrypt/miku') as demo:
|
152 |
with gr.Tab("search"):
|
@@ -154,13 +155,13 @@ with gr.Blocks(css=basecss, js=jscode, theme='NoCrypt/miku') as demo:
|
|
154 |
query = gr.Textbox(label="tags (optional, comma seperated)", lines=1, interactive=True)
|
155 |
searchbutton = gr.Button("search")
|
156 |
with gr.Row():
|
157 |
-
papercards = gr.HTML()
|
158 |
with gr.Tab("read"):
|
159 |
with gr.Row():
|
160 |
paperid = gr.Textbox(label="paper id", lines=1, interactive=True)
|
161 |
readbutton = gr.Button("read")
|
162 |
with gr.Row():
|
163 |
-
paper = gr.Markdown()
|
164 |
with gr.Tab("publish"):
|
165 |
with gr.Row():
|
166 |
title = gr.Textbox(label="title", lines=1, interactive=True)
|
@@ -172,7 +173,7 @@ with gr.Blocks(css=basecss, js=jscode, theme='NoCrypt/miku') as demo:
|
|
172 |
with gr.Accordion("preview"):
|
173 |
|
174 |
previewbutton = gr.Button("preview")
|
175 |
-
preview = gr.Markdown()
|
176 |
with gr.Row():
|
177 |
status = gr.Textbox(label="status", lines=1, interactive=False)
|
178 |
publishbutton = gr.Button("publish")
|
|
|
147 |
raw = metadata + data
|
148 |
f.write(raw)
|
149 |
def makepreview(x):
|
150 |
+
print(x)
|
151 |
return x
|
152 |
with gr.Blocks(css=basecss, js=jscode, theme='NoCrypt/miku') as demo:
|
153 |
with gr.Tab("search"):
|
|
|
155 |
query = gr.Textbox(label="tags (optional, comma seperated)", lines=1, interactive=True)
|
156 |
searchbutton = gr.Button("search")
|
157 |
with gr.Row():
|
158 |
+
papercards = gr.HTML("")
|
159 |
with gr.Tab("read"):
|
160 |
with gr.Row():
|
161 |
paperid = gr.Textbox(label="paper id", lines=1, interactive=True)
|
162 |
readbutton = gr.Button("read")
|
163 |
with gr.Row():
|
164 |
+
paper = gr.Markdown("")
|
165 |
with gr.Tab("publish"):
|
166 |
with gr.Row():
|
167 |
title = gr.Textbox(label="title", lines=1, interactive=True)
|
|
|
173 |
with gr.Accordion("preview"):
|
174 |
|
175 |
previewbutton = gr.Button("preview")
|
176 |
+
preview = gr.Markdown("")
|
177 |
with gr.Row():
|
178 |
status = gr.Textbox(label="status", lines=1, interactive=False)
|
179 |
publishbutton = gr.Button("publish")
|