Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -204,12 +204,21 @@ PRESET_CTX = (
|
|
| 204 |
"jitteriness and sleep disruption. Moderate consumption is considered safe for most adults."
|
| 205 |
)
|
| 206 |
|
| 207 |
-
with gr.Blocks(title="
|
| 208 |
gr.Markdown(
|
| 209 |
-
"# Exoskeleton Reasoning
|
| 210 |
-
"
|
| 211 |
-
"
|
| 212 |
-
"-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
)
|
| 214 |
|
| 215 |
with gr.Row():
|
|
|
|
| 204 |
"jitteriness and sleep disruption. Moderate consumption is considered safe for most adults."
|
| 205 |
)
|
| 206 |
|
| 207 |
+
with gr.Blocks(title="Humains-Junior (Humains.com) — Exoskeleton Reasoning") as demo:
|
| 208 |
gr.Markdown(
|
| 209 |
+
"# Humains-Junior by Humains.com — Exoskeleton Reasoning (Friendly API)\n"
|
| 210 |
+
"\n"
|
| 211 |
+
"### How this demo enforces the prompt rules\n"
|
| 212 |
+
"- **Message format**: system prompt (general instructions) → a single **User:** block containing **Question + Context**.\n"
|
| 213 |
+
"- **Model behavior**:\n"
|
| 214 |
+
" 1. Outputs two plain-text sections: **Analysis** then **Response**.\n"
|
| 215 |
+
" 2. When the **question is related to the Context**, it **prioritizes the Context** over internal knowledge—even if the Context is factually wrong.\n"
|
| 216 |
+
" 3. If the **question is unrelated to the Context**, it **may answer normally** (not forced to follow the Context).\n"
|
| 217 |
+
" 4. Uses **plain text only** in the model output (no bullets/numbering/markdown characters).\n"
|
| 218 |
+
"- **Resilience**: time-budgeted retries handle long cold starts (default ~180s total budget).\n"
|
| 219 |
+
"- **Security**: API key, endpoint, and model ID are **server-side secrets**."
|
| 220 |
+
)
|
| 221 |
+
|
| 222 |
)
|
| 223 |
|
| 224 |
with gr.Row():
|