debug
Browse files
app.py
CHANGED
|
@@ -21,11 +21,10 @@ if not os.path.exists("/home/user/.flag"):
|
|
| 21 |
#subprocess.Popen(["pm2", "start", "/home/user/app/data/models/llama3-70b.py","--interpreter=python3"]).wait()
|
| 22 |
|
| 23 |
# Get the API key from environment variables
|
| 24 |
-
api_key = os.getenv("
|
| 25 |
-
login(api_key)
|
| 26 |
|
| 27 |
# Initialize the InferenceClient with the specified model
|
| 28 |
-
client = InferenceClient("meta-llama/Meta-Llama-3-70B-Instruct")
|
| 29 |
|
| 30 |
def decode_base64_to_json(base64_str):
|
| 31 |
try:
|
|
|
|
| 21 |
#subprocess.Popen(["pm2", "start", "/home/user/app/data/models/llama3-70b.py","--interpreter=python3"]).wait()
|
| 22 |
|
| 23 |
# Get the API key from environment variables
|
| 24 |
+
api_key = os.getenv("ai")
|
|
|
|
| 25 |
|
| 26 |
# Initialize the InferenceClient with the specified model
|
| 27 |
+
client = InferenceClient("meta-llama/Meta-Llama-3-70B-Instruct",token=api_key)
|
| 28 |
|
| 29 |
def decode_base64_to_json(base64_str):
|
| 30 |
try:
|