decodingdatascience commited on
Commit
b03b85b
·
verified ·
1 Parent(s): f19eaf5

Create app3.py

Browse files
Files changed (1) hide show
  1. app3.py +108 -0
app3.py ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Section 2: FAQ (FOR CHALLENGE PARTICIPANTS)
2
+ with gr.Column(scale=4):
3
+ gr.HTML(
4
+ """
5
+ <div class="dds-card">
6
+ <h3 class="dds-section-title">Section 2 — Challenge FAQ</h3>
7
+ <p class="dds-muted">
8
+ Quick answers for participants. If something isn’t answered here, ask the Copilot in the chat.
9
+ </p>
10
+ </div>
11
+ """
12
+ )
13
+
14
+ with gr.Accordion("FAQ 1 — What should I build for this challenge?", open=False):
15
+ gr.Markdown(
16
+ """
17
+ - Build a simple AI application that matches one of the challenge paths (e.g., LLM/API integration, no-code/low-code, etc.).
18
+ - Your goal is a **working demo** + **proof-of-work** you can share.
19
+ - Ask in chat: *“What are good project ideas that fit the rules in this challenge?”*
20
+ """.strip()
21
+ )
22
+
23
+ with gr.Accordion("FAQ 2 — What are the paths/tracks and which one should I choose?", open=False):
24
+ gr.Markdown(
25
+ """
26
+ - Choose based on your comfort level:
27
+ - **LLM/API Integration Path:** Python + API calls + basic RAG patterns
28
+ - **No-code/Low-code Path:** build fast using tooling
29
+ - **Sponsor/Tool-specific path (if applicable):** follow the workshop/demo tool
30
+ - Ask in chat: *“Given my background (X), which path fits best and why?”*
31
+ """.strip()
32
+ )
33
+
34
+ with gr.Accordion("FAQ 3 — What is the minimum deliverable to be eligible?", open=False):
35
+ gr.Markdown(
36
+ """
37
+ Typical minimum for eligibility:
38
+ - A working app link (Gradio / Hugging Face / Streamlit / etc.)
39
+ - A short description + how to use it
40
+ - A repo or shared proof-of-work (optional but recommended)
41
+ Ask in chat: *“What is the minimum submission requirement mentioned in the challenge doc?”*
42
+ """.strip()
43
+ )
44
+
45
+ with gr.Accordion("FAQ 4 — How do I submit my project?", open=False):
46
+ gr.Markdown(
47
+ """
48
+ - Usually you submit:
49
+ - App URL (where judges can open it)
50
+ - Repo URL (optional but strong)
51
+ - Short write-up + screenshots/video (if required)
52
+ Ask in chat: *“What is the official submission format and where do I submit?”*
53
+ """.strip()
54
+ )
55
+
56
+ with gr.Accordion("FAQ 5 — Where should I deploy so judges can access easily?", open=False):
57
+ gr.Markdown(
58
+ """
59
+ Low-friction options (no install needed):
60
+ - **Hugging Face Spaces (Gradio)** ✅ easiest for demos
61
+ - **Streamlit Community Cloud**
62
+ - **Vercel (for web apps)**
63
+ Ask in chat: *“Which deployment options are recommended in the challenge rules?”*
64
+ """.strip()
65
+ )
66
+
67
+ with gr.Accordion("FAQ 6 — What do judges usually look for?", open=False):
68
+ gr.Markdown(
69
+ """
70
+ Common judging signals:
71
+ - **Working demo** (no errors, easy to use)
72
+ - Clear problem statement + target user
73
+ - Good AI behavior (grounded answers, guardrails, no hallucination)
74
+ - Product thinking (UX, clarity, flow)
75
+ Ask in chat: *“What are the judging criteria stated in the challenge document?”*
76
+ """.strip()
77
+ )
78
+
79
+ with gr.Accordion("FAQ 7 — What should I post on LinkedIn (proof-of-work)?", open=False):
80
+ gr.Markdown(
81
+ """
82
+ Strong proof-of-work post includes:
83
+ - 1-line problem + who it helps
84
+ - Demo link + screenshot/GIF
85
+ - What you learned + next improvement
86
+ Ask in chat: *“Give me a LinkedIn post draft based on my project and this challenge.”*
87
+ """.strip()
88
+ )
89
+
90
+ with gr.Accordion("FAQ 8 — How do I make my app ‘RAG grounded’ (not hallucinating)?", open=False):
91
+ gr.Markdown(
92
+ """
93
+ Best practices:
94
+ - Keep answers restricted to retrieved context
95
+ - Show sources/snippets (optional but strong)
96
+ - If missing info → respond “Not in document” and ask to add content
97
+ Ask in chat: *“What does the document say about [X]? If not present, tell me what to add.”*
98
+ """.strip()
99
+ )
100
+
101
+ with gr.Accordion("FAQ 9 — I can’t find a detail (dates/rules/prizes). What now?", open=False):
102
+ gr.Markdown(
103
+ f"""
104
+ - The Copilot can only answer what is inside **{DOC_PATH.name}**.
105
+ - If the official rule/prize/date isn’t in the TXT, add it and restart the Space.
106
+ Ask in chat: *“What exact section should I add to the TXT to cover [missing detail]?”*
107
+ """.strip()
108
+ )