Update app.py
Browse files
app.py
CHANGED
|
@@ -89,24 +89,6 @@ def verify_registration(email, hf_username):
|
|
| 89 |
- **Email:** {registration['email']}
|
| 90 |
- **Hugging Face Username:** {registration['hf_username']}
|
| 91 |
- **Registered On:** {reg_date}
|
| 92 |
-
|
| 93 |
-
**Hackathon Participation:**
|
| 94 |
-
- **Track Interest:** {track_interest}
|
| 95 |
-
- **Gradio Usage:** {registration['gradio_usage']}
|
| 96 |
-
- **Previous Participation:** {registration['previous_participation']}
|
| 97 |
-
- **Experience Level:** {registration['experience_level']}
|
| 98 |
-
- **How You Heard:** {registration['how_heard']}
|
| 99 |
-
|
| 100 |
-
**Project Idea:**
|
| 101 |
-
{registration['project_description'] if registration['project_description'] else '_No project description provided_'}
|
| 102 |
-
|
| 103 |
-
---
|
| 104 |
-
|
| 105 |
-
**Next Steps:**
|
| 106 |
-
- π API and Compute credits will be distributed before or during the hackathon
|
| 107 |
-
- π¬ Join our Discord community channel `mcp-1st-birthday-officialπ`: https://discord.gg/92sEPT2Zhv
|
| 108 |
-
- π§ Watch your email for important updates
|
| 109 |
-
- π Start planning your project!
|
| 110 |
"""
|
| 111 |
|
| 112 |
logger.info(f"β
Verification successful for {email}")
|
|
@@ -156,9 +138,7 @@ with gr.Blocks(title="MCP Birthday Party - Registration Verification", css=custo
|
|
| 156 |
gr.Markdown("""
|
| 157 |
# π MCP's 1st Birthday - Registration Verification
|
| 158 |
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
**π
Event Dates:** November 14-30, 2025 | **π Prizes: $17,000+ USD**
|
| 162 |
|
| 163 |
Enter your email address and Hugging Face username to verify your registration and view your details.
|
| 164 |
""")
|
|
@@ -188,13 +168,7 @@ with gr.Blocks(title="MCP Birthday Party - Registration Verification", css=custo
|
|
| 188 |
- Make sure you enter the **exact** email and username you used during registration
|
| 189 |
- Both fields are **case-insensitive** but must match your registration
|
| 190 |
- Both email AND username must match for security purposes
|
| 191 |
-
- If you can't find your registration, try registering at the main
|
| 192 |
-
|
| 193 |
-
### Need Help?
|
| 194 |
-
|
| 195 |
-
- **Discord:** https://discord.gg/92sEPT2Zhv (channel: `mcp-1st-birthday-officialπ`)
|
| 196 |
-
- **Email:** [email protected]
|
| 197 |
-
- **Register:** [Main Registration Page](https://huggingface.co/spaces/ysharma/gradio-mcp-1st-birthday-hackathon-winter-2025)
|
| 198 |
""")
|
| 199 |
|
| 200 |
verify_output = gr.Markdown()
|
|
@@ -208,17 +182,10 @@ with gr.Blocks(title="MCP Birthday Party - Registration Verification", css=custo
|
|
| 208 |
|
| 209 |
# Footer
|
| 210 |
gr.Markdown("""
|
| 211 |
-
---
|
| 212 |
-
|
| 213 |
-
**π― About the Hackathon:**
|
| 214 |
-
|
| 215 |
-
Join the definitive Agents & MCP event! OpenAI, Microsoft, Google DeepMind, and numerous startups have already adopted MCP.
|
| 216 |
-
Participate and stand a chance to learn the latest AI technologies and Win BIG!
|
| 217 |
-
|
| 218 |
**π Quick Links:**
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
- [Hackathon Details & Rules](https://huggingface.co/mcphack)
|
| 222 |
""")
|
| 223 |
|
| 224 |
if __name__ == "__main__":
|
|
|
|
| 89 |
- **Email:** {registration['email']}
|
| 90 |
- **Hugging Face Username:** {registration['hf_username']}
|
| 91 |
- **Registered On:** {reg_date}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
"""
|
| 93 |
|
| 94 |
logger.info(f"β
Verification successful for {email}")
|
|
|
|
| 138 |
gr.Markdown("""
|
| 139 |
# π MCP's 1st Birthday - Registration Verification
|
| 140 |
|
| 141 |
+
**π
Event Dates:** November 14-30, 2025
|
|
|
|
|
|
|
| 142 |
|
| 143 |
Enter your email address and Hugging Face username to verify your registration and view your details.
|
| 144 |
""")
|
|
|
|
| 168 |
- Make sure you enter the **exact** email and username you used during registration
|
| 169 |
- Both fields are **case-insensitive** but must match your registration
|
| 170 |
- Both email AND username must match for security purposes
|
| 171 |
+
- If you can't find your registration, try registering at the [main registration page](https://huggingface.co/spaces/MCP-1st-Birthday/gradio-hackathon-registration-winter25)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
""")
|
| 173 |
|
| 174 |
verify_output = gr.Markdown()
|
|
|
|
| 182 |
|
| 183 |
# Footer
|
| 184 |
gr.Markdown("""
|
| 185 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
**π Quick Links:**
|
| 187 |
+
|
| 188 |
+
[Discord Community](https://discord.gg/92sEPT2Zhv) | [Hackathon Details & Rules](https://huggingface.co/MCP-1st-Birthday)
|
|
|
|
| 189 |
""")
|
| 190 |
|
| 191 |
if __name__ == "__main__":
|