Maharshi Gor
commited on
Commit
Β·
4b84911
1
Parent(s):
6d84fb2
Update links
Browse files- app.py +14 -4
- shared/workflows +1 -1
- src/components/model_pipeline/state_manager.py +3 -4
- src/envs.py +8 -2
app.py
CHANGED
@@ -15,18 +15,23 @@ from components.quizbowl.tossup import TossupInterface
|
|
15 |
from components.typed_dicts import PipelineInterfaceDefaults, TossupInterfaceDefaults
|
16 |
from display.css_html_js import fonts_header, js_head, leaderboard_css
|
17 |
from display.custom_css import css_bonus, css_pipeline, css_tossup
|
18 |
-
from display.guide import BUILDING_MARKDOWN,
|
19 |
from display.utils import AutoEvalColumn, fields
|
20 |
|
21 |
# Constants
|
22 |
from envs import (
|
23 |
API,
|
|
|
|
|
|
|
24 |
DOCS_REPO_URL,
|
25 |
EVAL_REQUESTS_PATH,
|
26 |
EVAL_RESULTS_PATH,
|
|
|
27 |
LEADERBOARD_REFRESH_INTERVAL,
|
28 |
PLAYGROUND_DATASET_NAMES,
|
29 |
QUEUE_REPO,
|
|
|
30 |
REPO_ID,
|
31 |
RESULTS_REPO,
|
32 |
SERVER_RESTART_INTERVAL,
|
@@ -106,14 +111,19 @@ if __name__ == "__main__":
|
|
106 |
with gr.Row():
|
107 |
with gr.Column(scale=5):
|
108 |
gr.Markdown(
|
109 |
-
"## π€ Welcome to QANTA 2025 Quizbowl Arena! \n### π² Create, play around, and submit your quizbowl agents.
|
|
|
110 |
elem_classes="welcome-text",
|
111 |
)
|
112 |
login_btn = gr.LoginButton(scale=1)
|
|
|
|
|
113 |
gr.Markdown(
|
114 |
-
"
|
115 |
f"[QANTA25 Documentation]({DOCS_REPO_URL}) "
|
116 |
-
"for detailed examples and tutorials on how to create and compete with your own QuizBowl agents."
|
|
|
|
|
117 |
elem_classes="help-text",
|
118 |
)
|
119 |
with gr.Tabs() as gtab:
|
|
|
15 |
from components.typed_dicts import PipelineInterfaceDefaults, TossupInterfaceDefaults
|
16 |
from display.css_html_js import fonts_header, js_head, leaderboard_css
|
17 |
from display.custom_css import css_bonus, css_pipeline, css_tossup
|
18 |
+
from display.guide import BUILDING_MARKDOWN, QUICKSTART_MARKDOWN
|
19 |
from display.utils import AutoEvalColumn, fields
|
20 |
|
21 |
# Constants
|
22 |
from envs import (
|
23 |
API,
|
24 |
+
COMPETITION_URL,
|
25 |
+
CONTACT_EMAIL,
|
26 |
+
DISCORD_URL,
|
27 |
DOCS_REPO_URL,
|
28 |
EVAL_REQUESTS_PATH,
|
29 |
EVAL_RESULTS_PATH,
|
30 |
+
GITHUB_ISSUES_URL,
|
31 |
LEADERBOARD_REFRESH_INTERVAL,
|
32 |
PLAYGROUND_DATASET_NAMES,
|
33 |
QUEUE_REPO,
|
34 |
+
REGISTRATION_URL,
|
35 |
REPO_ID,
|
36 |
RESULTS_REPO,
|
37 |
SERVER_RESTART_INTERVAL,
|
|
|
111 |
with gr.Row():
|
112 |
with gr.Column(scale=5):
|
113 |
gr.Markdown(
|
114 |
+
"## π€ Welcome to QANTA 2025 Quizbowl Arena! \n### π² Create, play around, and submit your quizbowl agents."
|
115 |
+
f"<br>π Register [here]({REGISTRATION_URL}) to participate in our [QANTA 2025 Human-AI Quizbowl Competition]({COMPETITION_URL}).",
|
116 |
elem_classes="welcome-text",
|
117 |
)
|
118 |
login_btn = gr.LoginButton(scale=1)
|
119 |
+
|
120 |
+
accent_color = "#B00000"
|
121 |
gr.Markdown(
|
122 |
+
f"π <span style='color:{accent_color};font-weight:bold;'>First time here?</span> Check out the [β Help](#help) tab for a quick introduction and "
|
123 |
f"[QANTA25 Documentation]({DOCS_REPO_URL}) "
|
124 |
+
"for detailed examples and tutorials on how to create and compete with your own QuizBowl agents. "
|
125 |
+
f"<br>π€¨ <span style='color:{accent_color};font-weight:bold;'>Facing any issues?</span> Please contact us at [{CONTACT_EMAIL}](mailto:{CONTACT_EMAIL}), or raise an issue on our [GitHub repository]({GITHUB_ISSUES_URL}).",
|
126 |
+
f"<br>π€¨ <span style='color:{accent_color};font-weight:bold;'>Engagements?</span> Join our [Discord server]({DISCORD_URL}) to discuss the competition, share your agents, and get help from other participants.",
|
127 |
elem_classes="help-text",
|
128 |
)
|
129 |
with gr.Tabs() as gtab:
|
shared/workflows
CHANGED
@@ -1 +1 @@
|
|
1 |
-
Subproject commit
|
|
|
1 |
+
Subproject commit 6f9f3742d977eca6a385d6dbc5f28b5b16287cf1
|
src/components/model_pipeline/state_manager.py
CHANGED
@@ -12,7 +12,7 @@ from app_configs import UNSELECTED_VAR_NAME
|
|
12 |
from components import typed_dicts as td
|
13 |
from components import utils
|
14 |
from components.structs import ModelStepUIState, PipelineState, PipelineUIState, TossupPipelineState
|
15 |
-
from envs import
|
16 |
from shared.workflows.factory import create_new_llm_step
|
17 |
from shared.workflows.structs import Buzzer, BuzzerMethod, ModelStep, TossupWorkflow, Workflow
|
18 |
|
@@ -175,16 +175,15 @@ class PipelineStateManager:
|
|
175 |
{help_text}
|
176 |
</div>
|
177 |
"""
|
178 |
-
repo_files_url = f"{DOCS_REPO_URL}/tree/{DOCS_REPO_BRANCH}"
|
179 |
if isinstance(e, yaml.YAMLError):
|
180 |
error_type = "Invalid YAML Error"
|
181 |
help_text = "Refer to the <a href='https://spacelift.io/blog/yaml#basic-yaml-syntax' target='_blank'>YAML schema</a> for correct formatting."
|
182 |
elif isinstance(e, ValidationError):
|
183 |
error_type = "Pipeline Parsing Error"
|
184 |
-
help_text = f"Refer to the <a href='{
|
185 |
elif isinstance(e, ValueError):
|
186 |
error_type = "Pipeline Validation Error"
|
187 |
-
help_text = f"Refer to the <a href='{
|
188 |
else:
|
189 |
error_type = "Unexpected Error"
|
190 |
help_text = (
|
|
|
12 |
from components import typed_dicts as td
|
13 |
from components import utils
|
14 |
from components.structs import ModelStepUIState, PipelineState, PipelineUIState, TossupPipelineState
|
15 |
+
from envs import DOCS_REPO_URL, DOCS_URL
|
16 |
from shared.workflows.factory import create_new_llm_step
|
17 |
from shared.workflows.structs import Buzzer, BuzzerMethod, ModelStep, TossupWorkflow, Workflow
|
18 |
|
|
|
175 |
{help_text}
|
176 |
</div>
|
177 |
"""
|
|
|
178 |
if isinstance(e, yaml.YAMLError):
|
179 |
error_type = "Invalid YAML Error"
|
180 |
help_text = "Refer to the <a href='https://spacelift.io/blog/yaml#basic-yaml-syntax' target='_blank'>YAML schema</a> for correct formatting."
|
181 |
elif isinstance(e, ValidationError):
|
182 |
error_type = "Pipeline Parsing Error"
|
183 |
+
help_text = f"Refer to the <a href='{DOCS_URL}/pipeline-schema.md' target='_blank'>documentation</a> for the correct pipeline schema."
|
184 |
elif isinstance(e, ValueError):
|
185 |
error_type = "Pipeline Validation Error"
|
186 |
+
help_text = f"Refer to the <a href='{DOCS_URL}/pipeline-schema.md' target='_blank'>documentation</a> for the correct pipeline schema."
|
187 |
else:
|
188 |
error_type = "Unexpected Error"
|
189 |
help_text = (
|
src/envs.py
CHANGED
@@ -19,10 +19,16 @@ LLM_CACHE_REPO = f"{OWNER}/advcal-llm-cache"
|
|
19 |
USERS_REPO = f"{OWNER}/registered-users"
|
20 |
EVAL_SPLITS = ["tiny_eval"]
|
21 |
|
|
|
|
|
|
|
22 |
DOCS_REPO_URL = "https://github.com/qanta-challenge/QANTA25"
|
23 |
-
|
24 |
-
|
25 |
|
|
|
|
|
|
|
26 |
EXAMPLES_PATH = "examples"
|
27 |
|
28 |
PLAYGROUND_DATASET_NAMES = {
|
|
|
19 |
USERS_REPO = f"{OWNER}/registered-users"
|
20 |
EVAL_SPLITS = ["tiny_eval"]
|
21 |
|
22 |
+
# Important Links
|
23 |
+
QANTA_WEBSITE_URL = "https://sites.google.com/view/qanta/home"
|
24 |
+
COMPETITION_URL = "https://sites.google.com/view/qanta/2025-competition"
|
25 |
DOCS_REPO_URL = "https://github.com/qanta-challenge/QANTA25"
|
26 |
+
DOCS_URL = DOCS_REPO_URL + "/tree/main"
|
27 |
+
GITHUB_ISSUES_URL = DOCS_REPO_URL + "/issues"
|
28 |
|
29 |
+
CONTACT_EMAIL = "[email protected]"
|
30 |
+
DISCORD_URL = "https://discord.gg/ChmDVatJ6Y"
|
31 |
+
REGISTRATION_URL = "https://huggingface.co/spaces/qanta-challenge/register"
|
32 |
EXAMPLES_PATH = "examples"
|
33 |
|
34 |
PLAYGROUND_DATASET_NAMES = {
|