Update app.py
Browse files
app.py
CHANGED
|
@@ -73,30 +73,42 @@ QUESTION_FILE_PATH_HLE = "files/hle_validation.jsonl"
|
|
| 73 |
DEFAULT_QUESTION = "In MCP's 1st Birthday Hackathon, hosted by Anthropic and Gradio, what percentage of participants submitted a solution so far?"
|
| 74 |
|
| 75 |
CSS_FULL_WIDTH = """
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
margin: 0 !important;
|
|
|
|
|
|
|
| 78 |
}
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
| 80 |
max-width: 100% !important;
|
| 81 |
width: 100% !important;
|
| 82 |
margin: 0 !important;
|
| 83 |
padding-left: 0 !important;
|
| 84 |
padding-right: 0 !important;
|
| 85 |
}
|
|
|
|
| 86 |
.content-padding {
|
| 87 |
padding-left: 1.5rem;
|
| 88 |
padding-right: 1.5rem;
|
| 89 |
}
|
|
|
|
| 90 |
.full-width-tabs {
|
| 91 |
width: 100%;
|
| 92 |
}
|
|
|
|
| 93 |
.full-width-tabs .gradio-block {
|
| 94 |
max-width: 100%;
|
| 95 |
width: 100%;
|
| 96 |
}
|
| 97 |
"""
|
| 98 |
|
| 99 |
-
with gr.Blocks() as gaia:
|
| 100 |
gr.HTML(f"<style>{CSS_FULL_WIDTH}</style>")
|
| 101 |
|
| 102 |
with gr.Column(elem_classes=["content-padding"]):
|
|
|
|
| 73 |
DEFAULT_QUESTION = "In MCP's 1st Birthday Hackathon, hosted by Anthropic and Gradio, what percentage of participants submitted a solution so far?"
|
| 74 |
|
| 75 |
CSS_FULL_WIDTH = """
|
| 76 |
+
html,
|
| 77 |
+
body,
|
| 78 |
+
#root,
|
| 79 |
+
#root > div,
|
| 80 |
+
main {
|
| 81 |
margin: 0 !important;
|
| 82 |
+
padding: 0 !important;
|
| 83 |
+
width: 100% !important;
|
| 84 |
}
|
| 85 |
+
|
| 86 |
+
.full-width-app,
|
| 87 |
+
.full-width-app > .gradio-block,
|
| 88 |
+
.full-width-app > .gradio-block > .gradio-container {
|
| 89 |
max-width: 100% !important;
|
| 90 |
width: 100% !important;
|
| 91 |
margin: 0 !important;
|
| 92 |
padding-left: 0 !important;
|
| 93 |
padding-right: 0 !important;
|
| 94 |
}
|
| 95 |
+
|
| 96 |
.content-padding {
|
| 97 |
padding-left: 1.5rem;
|
| 98 |
padding-right: 1.5rem;
|
| 99 |
}
|
| 100 |
+
|
| 101 |
.full-width-tabs {
|
| 102 |
width: 100%;
|
| 103 |
}
|
| 104 |
+
|
| 105 |
.full-width-tabs .gradio-block {
|
| 106 |
max-width: 100%;
|
| 107 |
width: 100%;
|
| 108 |
}
|
| 109 |
"""
|
| 110 |
|
| 111 |
+
with gr.Blocks(elem_classes=["full-width-app"]) as gaia:
|
| 112 |
gr.HTML(f"<style>{CSS_FULL_WIDTH}</style>")
|
| 113 |
|
| 114 |
with gr.Column(elem_classes=["content-padding"]):
|