Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,12 @@ import time
|
|
4 |
import os
|
5 |
from dotenv import load_dotenv
|
6 |
from huggingface_hub import list_models
|
|
|
7 |
|
8 |
load_dotenv()
|
9 |
API_URL = os.getenv("API_URL")
|
10 |
choices = os.getenv("choices")
|
|
|
11 |
|
12 |
def check_active_users():
|
13 |
response = requests.get(f"{API_URL}/status")
|
|
|
4 |
import os
|
5 |
from dotenv import load_dotenv
|
6 |
from huggingface_hub import list_models
|
7 |
+
import ast
|
8 |
|
9 |
load_dotenv()
|
10 |
API_URL = os.getenv("API_URL")
|
11 |
choices = os.getenv("choices")
|
12 |
+
choices = ast.literal_eval(choices)
|
13 |
|
14 |
def check_active_users():
|
15 |
response = requests.get(f"{API_URL}/status")
|