KChad commited on
Commit
06721c4
·
1 Parent(s): 8c1a0c3

new changes

Browse files
Files changed (1) hide show
  1. server/app.py +5 -4
server/app.py CHANGED
@@ -26,6 +26,7 @@ APP_VERSION = "0.1.0"
26
  ENV_NAME = "idpi-exfil-env"
27
  ENV_DESCRIPTION = "OpenEnv-compatible prompt injection benchmark for safe email processing."
28
  TASK_NAMES = ["easy", "medium", "hard"]
 
29
 
30
  app = FastAPI(
31
  title="IDPI Exfil Environment",
@@ -409,14 +410,14 @@ def _landing_page_html() -> str:
409
  <section class="panel section">
410
  <h2>Quick Start</h2>
411
  <div class="api-grid">
412
- <pre>curl -X POST https://your-space.hf.space/reset
413
 
414
- curl -X POST https://your-space.hf.space/step \\
415
  -H "Content-Type: application/json" \\
416
  -d '{{"action": {{"type": "ReadDoc"}}}}'
417
 
418
- curl https://your-space.hf.space/state
419
- curl https://your-space.hf.space/result</pre>
420
  <div>
421
  <ul>
422
  <li>Use <span class="inline">POST /reset</span> to start a new episode. An empty body is valid.</li>
 
26
  ENV_NAME = "idpi-exfil-env"
27
  ENV_DESCRIPTION = "OpenEnv-compatible prompt injection benchmark for safe email processing."
28
  TASK_NAMES = ["easy", "medium", "hard"]
29
+ SPACE_URL = "https://kchad-prompt-injection-rl-environment.hf.space"
30
 
31
  app = FastAPI(
32
  title="IDPI Exfil Environment",
 
410
  <section class="panel section">
411
  <h2>Quick Start</h2>
412
  <div class="api-grid">
413
+ <pre>curl -X POST {SPACE_URL}/reset
414
 
415
+ curl -X POST {SPACE_URL}/step \\
416
  -H "Content-Type: application/json" \\
417
  -d '{{"action": {{"type": "ReadDoc"}}}}'
418
 
419
+ curl {SPACE_URL}/state
420
+ curl {SPACE_URL}/result</pre>
421
  <div>
422
  <ul>
423
  <li>Use <span class="inline">POST /reset</span> to start a new episode. An empty body is valid.</li>