Spaces:
Running
Running
Rename app (3).py to app.py
Browse files- app (3).py → app.py +2 -2
app (3).py → app.py
RENAMED
|
@@ -10,7 +10,7 @@ MODEL_ID = os.getenv("FIREWORKS_MODEL_ID", "accounts/waseem-9b447b/models/ft-gdi
|
|
| 10 |
|
| 11 |
# Secrets (server-side only; never sent to the client UI)
|
| 12 |
FIREWORKS_API_KEY = os.getenv("FIREWORKS_API_KEY") # required
|
| 13 |
-
SYSTEM_PROMPT = os.getenv("SYSTEM_PROMPT"
|
| 14 |
|
| 15 |
if not FIREWORKS_API_KEY:
|
| 16 |
raise RuntimeError("Missing FIREWORKS_API_KEY environment variable")
|
|
@@ -96,7 +96,7 @@ div.controls { gap: 10px !important; }
|
|
| 96 |
<div style="display:flex; align-items:center; gap:12px; margin: 6px 0 16px;">
|
| 97 |
<svg width="28" height="28" viewBox="0 0 24 24" fill="none"><path d="M12 3l7 4v6c0 5-7 8-7 8s-7-3-7-8V7l7-4z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
| 98 |
<div>
|
| 99 |
-
<div id="title" style="font-size:1.25rem;">
|
| 100 |
<div style="opacity:0.7; font-size:0.95rem;">Secure, streamed chat to <code>inference/v1/chat/completions</code></div>
|
| 101 |
</div>
|
| 102 |
</div>
|
|
|
|
| 10 |
|
| 11 |
# Secrets (server-side only; never sent to the client UI)
|
| 12 |
FIREWORKS_API_KEY = os.getenv("FIREWORKS_API_KEY") # required
|
| 13 |
+
SYSTEM_PROMPT = os.getenv("SYSTEM_PROMPT")
|
| 14 |
|
| 15 |
if not FIREWORKS_API_KEY:
|
| 16 |
raise RuntimeError("Missing FIREWORKS_API_KEY environment variable")
|
|
|
|
| 96 |
<div style="display:flex; align-items:center; gap:12px; margin: 6px 0 16px;">
|
| 97 |
<svg width="28" height="28" viewBox="0 0 24 24" fill="none"><path d="M12 3l7 4v6c0 5-7 8-7 8s-7-3-7-8V7l7-4z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
| 98 |
<div>
|
| 99 |
+
<div id="title" style="font-size:1.25rem;">Palmyra-sec Chat Playground</div>
|
| 100 |
<div style="opacity:0.7; font-size:0.95rem;">Secure, streamed chat to <code>inference/v1/chat/completions</code></div>
|
| 101 |
</div>
|
| 102 |
</div>
|