Set fontawesome github logo
Browse files
app.py
CHANGED
|
@@ -115,38 +115,32 @@ custom_css = """
|
|
| 115 |
.logo-container {
|
| 116 |
display: flex;
|
| 117 |
flex-direction: column;
|
| 118 |
-
|
| 119 |
-
align-items: center;
|
| 120 |
width: 100%;
|
| 121 |
box-sizing: border-box;
|
| 122 |
-
|
| 123 |
|
| 124 |
.logo-item {
|
| 125 |
-
flex: 1;
|
| 126 |
display: flex;
|
| 127 |
-
justify-content: center;
|
| 128 |
align-items: center;
|
| 129 |
-
padding: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
}
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
height: 60px;
|
| 134 |
-
object-fit: contain;
|
| 135 |
}
|
| 136 |
""".replace("<<WIDTH>>", str(WIDTH+15)).replace("<<HEIGHT>>", str(HEIGHT+10))
|
| 137 |
|
| 138 |
footer_html="""
|
| 139 |
-
<h3 style="text-align: center; margin-top:100px;"><i>Powered by:</i></h2>
|
|
|
|
| 140 |
<div class="logo-container">
|
| 141 |
-
<a class="logo-item" href="https://github.com/huggingface/smolagents">
|
| 142 |
-
<
|
| 143 |
-
</a>
|
| 144 |
-
<a class="logo-item" href="https://huggingface.co/Qwen/Qwen2.5-VL-32B-Instruct">
|
| 145 |
-
<img src="https://upload.wikimedia.org/wikipedia/en/8/85/Logo_of_Qwen.png" alt="Qwen logo", style="height:48px;margin-top=10px;">
|
| 146 |
-
</a>
|
| 147 |
-
<a class="logo-item" href="https://github.com/e2b-dev/desktop">
|
| 148 |
-
<img src="https://image.pitchbook.com/XcarTFiUTDTVBfBep3JKHtiTAob1714067332850_200x200" alt="e2b logo", style="height:80px;">
|
| 149 |
-
</a>
|
| 150 |
</div>
|
| 151 |
"""
|
| 152 |
sandbox_html_template = """
|
|
@@ -577,6 +571,8 @@ with gr.Blocks(theme=theme, css=custom_css, js=custom_js, fill_width=True) as de
|
|
| 577 |
elem_classes="primary-color-label"
|
| 578 |
)
|
| 579 |
|
|
|
|
|
|
|
| 580 |
gr.Examples(
|
| 581 |
examples=[
|
| 582 |
"Check the commuting time between Bern and Zurich on Google maps",
|
|
@@ -600,9 +596,8 @@ with gr.Blocks(theme=theme, css=custom_css, js=custom_js, fill_width=True) as de
|
|
| 600 |
elem_id="results-output"
|
| 601 |
)
|
| 602 |
|
| 603 |
-
update_btn = gr.Button("Let's go!", variant="primary")
|
| 604 |
|
| 605 |
-
minimalist_toggle = gr.Checkbox(label="
|
| 606 |
|
| 607 |
def apply_theme(minimalist_mode: bool):
|
| 608 |
if not minimalist_mode:
|
|
|
|
| 115 |
.logo-container {
|
| 116 |
display: flex;
|
| 117 |
flex-direction: column;
|
| 118 |
+
align-items: flex-start;
|
|
|
|
| 119 |
width: 100%;
|
| 120 |
box-sizing: border-box;
|
| 121 |
+
gap: 5px;
|
| 122 |
|
| 123 |
.logo-item {
|
|
|
|
| 124 |
display: flex;
|
|
|
|
| 125 |
align-items: center;
|
| 126 |
+
padding: 0 30px;
|
| 127 |
+
gap: 10px;
|
| 128 |
+
text-decoration: none!important;
|
| 129 |
+
color: #f59e0b;
|
| 130 |
+
font-size:17px;
|
| 131 |
}
|
| 132 |
+
.logo-item:hover {
|
| 133 |
+
color: #935f06!important;
|
|
|
|
|
|
|
| 134 |
}
|
| 135 |
""".replace("<<WIDTH>>", str(WIDTH+15)).replace("<<HEIGHT>>", str(HEIGHT+10))
|
| 136 |
|
| 137 |
footer_html="""
|
| 138 |
+
<h3 style="text-align: center; margin-top:100px;"><i>Powered by open source:</i></h2>
|
| 139 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
| 140 |
<div class="logo-container">
|
| 141 |
+
<a class="logo-item" href="https://github.com/huggingface/smolagents"><i class="fa fa-github"></i>smolagents</a>
|
| 142 |
+
<a class="logo-item" href="https://huggingface.co/Qwen/Qwen2.5-VL-32B-Instruct"><i class="fa fa-github"></i>Qwen-VL</a>
|
| 143 |
+
<a class="logo-item" href="https://github.com/e2b-dev/desktop"><i class="fa fa-github"></i>E2B Desktop</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
</div>
|
| 145 |
"""
|
| 146 |
sandbox_html_template = """
|
|
|
|
| 571 |
elem_classes="primary-color-label"
|
| 572 |
)
|
| 573 |
|
| 574 |
+
update_btn = gr.Button("Let's go!", variant="primary")
|
| 575 |
+
|
| 576 |
gr.Examples(
|
| 577 |
examples=[
|
| 578 |
"Check the commuting time between Bern and Zurich on Google maps",
|
|
|
|
| 596 |
elem_id="results-output"
|
| 597 |
)
|
| 598 |
|
|
|
|
| 599 |
|
| 600 |
+
minimalist_toggle = gr.Checkbox(label="Innie/Outie", value=False)
|
| 601 |
|
| 602 |
def apply_theme(minimalist_mode: bool):
|
| 603 |
if not minimalist_mode:
|