Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -146,15 +146,7 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
|
|
| 146 |
info="Number of top tokens to consider"
|
| 147 |
)
|
| 148 |
|
| 149 |
-
|
| 150 |
-
gr.Markdown("### π Setup Instructions")
|
| 151 |
-
gr.Markdown("""
|
| 152 |
-
1. Go to your Space **Settings**
|
| 153 |
-
2. Add these secrets:
|
| 154 |
-
- `FIREWORKS_API_KEY`: Your API key
|
| 155 |
-
- `SYSTEM_PROMPT`: Custom system prompt
|
| 156 |
-
3. Restart the Space
|
| 157 |
-
""")
|
| 158 |
|
| 159 |
# Handle message submission
|
| 160 |
def respond(message, chat_history, temp, max_tok, top_p_val, top_k_val):
|
|
@@ -189,13 +181,7 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
|
|
| 189 |
label="π‘ Try these examples"
|
| 190 |
)
|
| 191 |
|
| 192 |
-
|
| 193 |
-
---
|
| 194 |
-
### π Privacy & Security
|
| 195 |
-
- Your API key is stored securely in Hugging Face Spaces secrets
|
| 196 |
-
- System prompt is hidden from users
|
| 197 |
-
- All conversations are private to your session
|
| 198 |
-
""")
|
| 199 |
|
| 200 |
# Launch the app
|
| 201 |
if __name__ == "__main__":
|
|
|
|
| 146 |
info="Number of top tokens to consider"
|
| 147 |
)
|
| 148 |
|
| 149 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
|
| 151 |
# Handle message submission
|
| 152 |
def respond(message, chat_history, temp, max_tok, top_p_val, top_k_val):
|
|
|
|
| 181 |
label="π‘ Try these examples"
|
| 182 |
)
|
| 183 |
|
| 184 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
|
| 186 |
# Launch the app
|
| 187 |
if __name__ == "__main__":
|