NS-Y commited on
Commit
e79fc25
·
verified ·
1 Parent(s): 4f672c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -5
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="Exoskeleton ReasoningFriendly API (Appendix Prompt)") as demo:
208
  gr.Markdown(
209
- "# Exoskeleton Reasoning Friendly API\n"
210
- "- **Format**: system prompt (general instructions), then a single **User:** message containing **Question + Context**.\n"
211
- "- Built-in **time-budgeted retries** handle long cold starts (default ~180s budget).\n"
212
- "- Keys and endpoints are **server-side secrets**."
 
 
 
 
 
 
 
 
 
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():