Spaces:
Runtime error
Runtime error
TA
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ SYSTEM_PROMPT = "As an LLM, your job is to generate detailed prompts that start
|
|
| 6 |
TITLE = "Image Prompter"
|
| 7 |
EXAMPLE_INPUT = "A Man Riding A Horse in Space"
|
| 8 |
zephyr_7b_beta = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta"
|
| 9 |
-
HF_TOKEN = os.getenv("
|
| 10 |
HEADERS = {"Authorization": f"Bearer {HF_TOKEN}"}
|
| 11 |
|
| 12 |
def build_input_prompt(message, chatbot, system_prompt):
|
|
|
|
| 6 |
TITLE = "Image Prompter"
|
| 7 |
EXAMPLE_INPUT = "A Man Riding A Horse in Space"
|
| 8 |
zephyr_7b_beta = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta"
|
| 9 |
+
HF_TOKEN = os.getenv("HF_TOKEN")
|
| 10 |
HEADERS = {"Authorization": f"Bearer {HF_TOKEN}"}
|
| 11 |
|
| 12 |
def build_input_prompt(message, chatbot, system_prompt):
|