add default values for the app
Browse files
app.py
CHANGED
@@ -58,11 +58,11 @@ with gr.Blocks() as demo:
|
|
58 |
zotero_tag = gr.Textbox(label="Zotero Tag")
|
59 |
|
60 |
arxiv_category_name = gr.State([])
|
61 |
-
radio_arxiv_category_name = gr.Radio(['Computer Vision and Pattern Recognition', 'Computation and Language', 'Artificial Intelligence', 'Robotics'], label="ArXiv Category Query")
|
62 |
radio_arxiv_category_name.change(fn = category_radio, inputs= radio_arxiv_category_name, outputs= arxiv_category_name)
|
63 |
|
64 |
arxiv_comment_query = gr.State([])
|
65 |
-
radio_arxiv_comment_query = gr.Radio(['CVPR', 'ACL', 'TACL', 'JAIR', 'IJRR', 'None'], label="ArXiv Comment Query")
|
66 |
radio_arxiv_comment_query.change(fn = comment_radio, inputs= radio_arxiv_comment_query, outputs= arxiv_comment_query)
|
67 |
|
68 |
threshold = gr.Slider(minimum= 0.70, maximum= 0.99, value = 0.80, label="Similarity Score Threshold")
|
|
|
58 |
zotero_tag = gr.Textbox(label="Zotero Tag")
|
59 |
|
60 |
arxiv_category_name = gr.State([])
|
61 |
+
radio_arxiv_category_name = gr.Radio(['Computer Vision and Pattern Recognition', 'Computation and Language', 'Artificial Intelligence', 'Robotics'], value= 'Computer Vision and Pattern Recognition', label="ArXiv Category Query")
|
62 |
radio_arxiv_category_name.change(fn = category_radio, inputs= radio_arxiv_category_name, outputs= arxiv_category_name)
|
63 |
|
64 |
arxiv_comment_query = gr.State([])
|
65 |
+
radio_arxiv_comment_query = gr.Radio(['CVPR', 'ACL', 'TACL', 'JAIR', 'IJRR', 'None'], value='CVPR', label="ArXiv Comment Query")
|
66 |
radio_arxiv_comment_query.change(fn = comment_radio, inputs= radio_arxiv_comment_query, outputs= arxiv_comment_query)
|
67 |
|
68 |
threshold = gr.Slider(minimum= 0.70, maximum= 0.99, value = 0.80, label="Similarity Score Threshold")
|