update
Browse files
app.py
CHANGED
@@ -126,7 +126,9 @@ with gr.Blocks() as demo:
|
|
126 |
reset_btn.click(fn=reset_project, inputs=[], outputs=[reset_output])
|
127 |
|
128 |
@init_btn.click(
|
129 |
-
inputs=[zotero_api_key, zotero_library_id, zotero_tag],
|
|
|
|
|
130 |
)
|
131 |
def init(
|
132 |
zotero_api_key,
|
@@ -164,6 +166,7 @@ with gr.Blocks() as demo:
|
|
164 |
@rec_btn.click(
|
165 |
inputs=[arxiv_category_name, arxiv_comment_query, threshold],
|
166 |
outputs=[rec_output],
|
|
|
167 |
)
|
168 |
def recs(
|
169 |
arxiv_category_name,
|
|
|
126 |
reset_btn.click(fn=reset_project, inputs=[], outputs=[reset_output])
|
127 |
|
128 |
@init_btn.click(
|
129 |
+
inputs=[zotero_api_key, zotero_library_id, zotero_tag],
|
130 |
+
outputs=[init_output],
|
131 |
+
trigger_mode="once",
|
132 |
)
|
133 |
def init(
|
134 |
zotero_api_key,
|
|
|
166 |
@rec_btn.click(
|
167 |
inputs=[arxiv_category_name, arxiv_comment_query, threshold],
|
168 |
outputs=[rec_output],
|
169 |
+
trigger_mode="once",
|
170 |
)
|
171 |
def recs(
|
172 |
arxiv_category_name,
|