Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,6 +32,21 @@ custom_css = """
|
|
| 32 |
background-color: rgba(30, 30, 30, 0.95);
|
| 33 |
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 34 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
"""
|
| 36 |
|
| 37 |
# State variable to track current model
|
|
@@ -42,6 +57,19 @@ def switch_model(model_choice):
|
|
| 42 |
return gr.update(visible=False), gr.update(visible=True), model_choice
|
| 43 |
|
| 44 |
with gr.Blocks(fill_height=True, theme=gr.themes.Soft, css=custom_css) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
with gr.Row():
|
| 46 |
# Sidebar
|
| 47 |
with gr.Column(scale=1):
|
|
|
|
| 32 |
background-color: rgba(30, 30, 30, 0.95);
|
| 33 |
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 34 |
}
|
| 35 |
+
/* Badge container styling */
|
| 36 |
+
.badge-container {
|
| 37 |
+
display: flex;
|
| 38 |
+
justify-content: center;
|
| 39 |
+
align-items: center;
|
| 40 |
+
gap: 15px;
|
| 41 |
+
padding: 15px;
|
| 42 |
+
background-color: rgba(255, 255, 255, 0.9);
|
| 43 |
+
backdrop-filter: blur(10px);
|
| 44 |
+
border-radius: 15px;
|
| 45 |
+
margin-bottom: 20px;
|
| 46 |
+
}
|
| 47 |
+
.dark .badge-container {
|
| 48 |
+
background-color: rgba(30, 30, 30, 0.9);
|
| 49 |
+
}
|
| 50 |
"""
|
| 51 |
|
| 52 |
# State variable to track current model
|
|
|
|
| 57 |
return gr.update(visible=False), gr.update(visible=True), model_choice
|
| 58 |
|
| 59 |
with gr.Blocks(fill_height=True, theme=gr.themes.Soft, css=custom_css) as demo:
|
| 60 |
+
# Add badges at the top
|
| 61 |
+
with gr.Row(elem_classes="badge-container"):
|
| 62 |
+
gr.HTML("""
|
| 63 |
+
<div style="display: flex; justify-content: center; align-items: center; gap: 15px;">
|
| 64 |
+
<a href="https://huggingface.co/spaces/VIDraft/gpt-oss-RAG" target="_blank">
|
| 65 |
+
<img src="https://img.shields.io/static/v1?label=gpt-oss-20b&message=RAG&color=%23000080&labelColor=%23ffa500&logo=huggingface&logoColor=white&style=for-the-badge" alt="badge">
|
| 66 |
+
</a>
|
| 67 |
+
<a href="https://discord.gg/openfreeai" target="_blank">
|
| 68 |
+
<img src="https://img.shields.io/static/v1?label=Discord&message=Openfree%20AI&color=%23000080&labelColor=%23ffa500&logo=discord&logoColor=white&style=for-the-badge" alt="badge">
|
| 69 |
+
</a>
|
| 70 |
+
</div>
|
| 71 |
+
""")
|
| 72 |
+
|
| 73 |
with gr.Row():
|
| 74 |
# Sidebar
|
| 75 |
with gr.Column(scale=1):
|