Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -107,7 +107,8 @@ def filter_by_fields(selected_country, selected_city, selected_language, page):
|
|
| 107 |
if df.empty:
|
| 108 |
return "<p>No participants match your filters.</p>", page, total_count
|
| 109 |
|
| 110 |
-
html = "<
|
|
|
|
| 111 |
headers = ["Discord", "Name", "City", "Country", "Looking", "Onlinecheck", "Languages", "Laptop", "Robot", "Skills", "Describe3", "Experience", "Idea"]
|
| 112 |
for col in headers:
|
| 113 |
html += f"<th style='border:1px solid #ccc; padding:6px;'>{col}</th>"
|
|
@@ -152,7 +153,14 @@ def download_csv(code):
|
|
| 152 |
|
| 153 |
def interface():
|
| 154 |
with gr.Blocks(css=".gr-dropdown { max-height: 100px; overflow-y: auto; font-size: 12px; }") as demo:
|
| 155 |
-
gr.Markdown("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
|
| 157 |
with gr.Row():
|
| 158 |
with gr.Column():
|
|
@@ -174,6 +182,9 @@ def interface():
|
|
| 174 |
status = gr.Textbox(label="", interactive=False)
|
| 175 |
|
| 176 |
with gr.Column():
|
|
|
|
|
|
|
|
|
|
| 177 |
country_filter = gr.Dropdown(label="Filter by Country", choices=["All"] + ALL_COUNTRIES, value="All")
|
| 178 |
city_filter = gr.Dropdown(label="Filter by City", choices=["All"], value="All")
|
| 179 |
language_filter = gr.Dropdown(label="Filter by Language", choices=["All"] + LANGUAGES, value="All")
|
|
@@ -215,3 +226,4 @@ def interface():
|
|
| 215 |
|
| 216 |
demo = interface()
|
| 217 |
demo.launch()
|
|
|
|
|
|
| 107 |
if df.empty:
|
| 108 |
return "<p>No participants match your filters.</p>", page, total_count
|
| 109 |
|
| 110 |
+
html = "<h3 style='margin-top:20px;'>π Find your matching Teammates & Register your team <a href='https://forms.gle/gJEMGD4CEA2emhD18' target='_blank'>here</a></h3>"
|
| 111 |
+
html += "<table style='width:100%; border-collapse: collapse;'><tr>"
|
| 112 |
headers = ["Discord", "Name", "City", "Country", "Looking", "Onlinecheck", "Languages", "Laptop", "Robot", "Skills", "Describe3", "Experience", "Idea"]
|
| 113 |
for col in headers:
|
| 114 |
html += f"<th style='border:1px solid #ccc; padding:6px;'>{col}</th>"
|
|
|
|
| 153 |
|
| 154 |
def interface():
|
| 155 |
with gr.Blocks(css=".gr-dropdown { max-height: 100px; overflow-y: auto; font-size: 12px; }") as demo:
|
| 156 |
+
gr.Markdown("""
|
| 157 |
+
# π LeRobot Worldwide Hackathon - Team-Up Dashboard
|
| 158 |
+
|
| 159 |
+
Welcome to the Team-Up platform! Follow these steps:
|
| 160 |
+
|
| 161 |
+
1. **Submit or update** your profile to help others find and contact you via Discord. Required fields are marked with `*`.
|
| 162 |
+
2. **Use the filters** (country, city, language) to search for teammates from around the world.
|
| 163 |
+
""")
|
| 164 |
|
| 165 |
with gr.Row():
|
| 166 |
with gr.Column():
|
|
|
|
| 182 |
status = gr.Textbox(label="", interactive=False)
|
| 183 |
|
| 184 |
with gr.Column():
|
| 185 |
+
gr.Markdown("""
|
| 186 |
+
π― Use the filters below to find your ideal teammates:
|
| 187 |
+
""")
|
| 188 |
country_filter = gr.Dropdown(label="Filter by Country", choices=["All"] + ALL_COUNTRIES, value="All")
|
| 189 |
city_filter = gr.Dropdown(label="Filter by City", choices=["All"], value="All")
|
| 190 |
language_filter = gr.Dropdown(label="Filter by Language", choices=["All"] + LANGUAGES, value="All")
|
|
|
|
| 226 |
|
| 227 |
demo = interface()
|
| 228 |
demo.launch()
|
| 229 |
+
|