Spaces:
Running
Running
File size: 862 Bytes
1e4764f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
"""
constants.py
"""
import os
APP_TITLE = "π€ Gradio Canvas"
APP_HEADER = """
<div style="text-align: center;">
<h1>π€ Gradio Canvas</h1>
<p> Powered by <a href="https://fireworks.ai">Fireworks AI</a> π and <a href="https://github.com/instructor-ai/instructor">Instructor</a> π¨βπ«</p>
</div>
"""
FIREWORKS_API_KEY = os.getenv("FIREWORKS_API_KEY")
LLM_MAX_TOKENS = 16_384
LLM_MODEL = "accounts/fireworks/models/llama-v3p1-405b-instruct"
LLM_SYSTEM_PROMPT = """
Your goal is to generate Python code based on the user's request.
You will receive a user request and optionally some existing code.
You MUST return your response as a JSON with the following fields: `planning`, `full_python_code`, `commentary`.
The `full_python_code` should be a complete Python script that can be executed - no code blocks or other formatting.
"""
|