Spaces:
Running
Running
new
Browse files
app.py
CHANGED
|
@@ -547,16 +547,20 @@ with gr.Blocks(css_paths="style.css") as demo:
|
|
| 547 |
hf_options = []
|
| 548 |
hf_options = gr.update(value=hf_options)
|
| 549 |
|
| 550 |
-
if "
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 560 |
|
| 561 |
return calendar, date_range, conferences, hf_options, selected_tab, paper_id, paper_from, tab_chat_paper
|
| 562 |
|
|
@@ -584,7 +588,7 @@ def main():
|
|
| 584 |
"""
|
| 585 |
Launches the Gradio app.
|
| 586 |
"""
|
| 587 |
-
demo.launch(ssr_mode=False)
|
| 588 |
|
| 589 |
|
| 590 |
# Run the main function when the script is executed
|
|
|
|
| 547 |
hf_options = []
|
| 548 |
hf_options = gr.update(value=hf_options)
|
| 549 |
|
| 550 |
+
if "paper_id" in request.query_params:
|
| 551 |
+
paper_id = request.query_params['paper_id']
|
| 552 |
+
paper_from = request.query_params['paper_from']
|
| 553 |
+
|
| 554 |
+
# if "tab" in request.query_params:
|
| 555 |
+
# tab = request.query_params['tab']
|
| 556 |
+
# if tab == "tab-leaderboards":
|
| 557 |
+
# selected_tab = gr.Tabs(selected="tab-leaderboards")
|
| 558 |
+
# elif tab == "tab-chat-with-paper":
|
| 559 |
+
# selected_tab = gr.Tabs(selected="tab-chat-with-paper")
|
| 560 |
+
# if "paper_id" in request.query_params:
|
| 561 |
+
# paper_id = request.query_params['paper_id']
|
| 562 |
+
# tab_chat_paper = gr.update(visible=True)
|
| 563 |
+
# paper_from = request.query_params['paper_from']
|
| 564 |
|
| 565 |
return calendar, date_range, conferences, hf_options, selected_tab, paper_id, paper_from, tab_chat_paper
|
| 566 |
|
|
|
|
| 588 |
"""
|
| 589 |
Launches the Gradio app.
|
| 590 |
"""
|
| 591 |
+
demo.launch(ssr_mode=False, share=True)
|
| 592 |
|
| 593 |
|
| 594 |
# Run the main function when the script is executed
|