Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,14 +5,14 @@ from langchain_core.output_parsers import StrOutputParser
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
# Set up API keys from environment variables
|
| 8 |
-
mistral_api_key = os.getenv("
|
| 9 |
-
langchain_api_key = os.getenv("
|
| 10 |
|
| 11 |
# Environment setup
|
| 12 |
-
os.environ["
|
| 13 |
if langchain_api_key:
|
| 14 |
-
os.environ["
|
| 15 |
-
os.environ["
|
| 16 |
|
| 17 |
# Prompt Template
|
| 18 |
prompt = ChatPromptTemplate.from_messages([
|
|
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
# Set up API keys from environment variables
|
| 8 |
+
mistral_api_key = os.getenv("mistralapikey", "HQ2u8NYTq0Bpc8zpuEQ9rxLd9p7PgHXA")
|
| 9 |
+
langchain_api_key = os.getenv("langchainapikey", "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")
|
| 10 |
|
| 11 |
# Environment setup
|
| 12 |
+
os.environ["mistralapikey"] = mistral_api_key
|
| 13 |
if langchain_api_key:
|
| 14 |
+
os.environ["langchaintracingv2"] = "true"
|
| 15 |
+
os.environ["langchainapikey"] = langchain_api_key
|
| 16 |
|
| 17 |
# Prompt Template
|
| 18 |
prompt = ChatPromptTemplate.from_messages([
|