Update app.py
Browse files
app.py
CHANGED
|
@@ -4,9 +4,6 @@
|
|
| 4 |
|
| 5 |
import gradio.utils, os
|
| 6 |
import gradio as gr
|
| 7 |
-
|
| 8 |
-
os.environ["CREWAI_TRACING_ENABLED"] = "false"
|
| 9 |
-
|
| 10 |
from agents.crew import run_crew
|
| 11 |
from utils.utils import get_questions
|
| 12 |
|
|
@@ -82,11 +79,7 @@ DEFAULT_QUESTION = "In MCP's 1st Birthday Hackathon, hosted by Anthropic and Gra
|
|
| 82 |
|
| 83 |
CSS_FULL_WIDTH = """
|
| 84 |
html,
|
| 85 |
-
body
|
| 86 |
-
#root,
|
| 87 |
-
#root > div,
|
| 88 |
-
main,
|
| 89 |
-
.gradio-app {
|
| 90 |
margin: 0 !important;
|
| 91 |
padding: 0 !important;
|
| 92 |
width: 100% !important;
|
|
@@ -94,10 +87,7 @@ main,
|
|
| 94 |
overflow-x: hidden !important;
|
| 95 |
}
|
| 96 |
|
| 97 |
-
.full-width-app
|
| 98 |
-
.full-width-app .gradio-app,
|
| 99 |
-
.full-width-app .gradio-container,
|
| 100 |
-
.full-width-app .gradio-block {
|
| 101 |
width: 100% !important;
|
| 102 |
max-width: 100% !important;
|
| 103 |
margin-left: 0 !important;
|
|
@@ -107,17 +97,7 @@ main,
|
|
| 107 |
}
|
| 108 |
|
| 109 |
.content-padding {
|
| 110 |
-
padding
|
| 111 |
-
padding-right: 1.5rem;
|
| 112 |
-
}
|
| 113 |
-
|
| 114 |
-
.full-width-tabs2 {
|
| 115 |
-
width: 100%;
|
| 116 |
-
}
|
| 117 |
-
|
| 118 |
-
.full-width-tabs2 .gradio-block {
|
| 119 |
-
max-width: 100%;
|
| 120 |
-
width: 100%;
|
| 121 |
}
|
| 122 |
"""
|
| 123 |
|
|
@@ -200,7 +180,7 @@ with gr.Blocks(elem_classes=["full-width-app"]) as gaia:
|
|
| 200 |
outputs=[file_link]
|
| 201 |
)
|
| 202 |
|
| 203 |
-
with gr.Tabs(
|
| 204 |
with gr.TabItem("GAIA Benchmark Level 1"):
|
| 205 |
gr.Examples(
|
| 206 |
examples=get_questions(QUESTION_FILE_PATH_GAIA, 1),
|
|
|
|
| 4 |
|
| 5 |
import gradio.utils, os
|
| 6 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
| 7 |
from agents.crew import run_crew
|
| 8 |
from utils.utils import get_questions
|
| 9 |
|
|
|
|
| 79 |
|
| 80 |
CSS_FULL_WIDTH = """
|
| 81 |
html,
|
| 82 |
+
body {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
margin: 0 !important;
|
| 84 |
padding: 0 !important;
|
| 85 |
width: 100% !important;
|
|
|
|
| 87 |
overflow-x: hidden !important;
|
| 88 |
}
|
| 89 |
|
| 90 |
+
.full-width-app {
|
|
|
|
|
|
|
|
|
|
| 91 |
width: 100% !important;
|
| 92 |
max-width: 100% !important;
|
| 93 |
margin-left: 0 !important;
|
|
|
|
| 97 |
}
|
| 98 |
|
| 99 |
.content-padding {
|
| 100 |
+
padding: 0 1.5rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
}
|
| 102 |
"""
|
| 103 |
|
|
|
|
| 180 |
outputs=[file_link]
|
| 181 |
)
|
| 182 |
|
| 183 |
+
with gr.Tabs():
|
| 184 |
with gr.TabItem("GAIA Benchmark Level 1"):
|
| 185 |
gr.Examples(
|
| 186 |
examples=get_questions(QUESTION_FILE_PATH_GAIA, 1),
|