Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,18 +10,18 @@ from dotenv import load_dotenv
|
|
10 |
# Load environment variables
|
11 |
load_dotenv()
|
12 |
|
13 |
-
# Define model links and configurations
|
14 |
-
model_links = {
|
15 |
-
"HAH-2024-v0.1": "drmasad/HAH-2024-v0.11",
|
16 |
-
"Mistral": "mistralai/Mistral-7B-Instruct-v0.2",
|
17 |
-
}
|
18 |
-
|
19 |
# Initialize the OpenAI client (if needed for Hugging Face Inference API)
|
20 |
client = OpenAI(
|
21 |
base_url="https://api-inference.huggingface.co/v1",
|
22 |
api_key=os.environ.get("HUGGINGFACEHUB_API_TOKEN"),
|
23 |
)
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
# Define sidebar options
|
26 |
models = list(model_links.keys())
|
27 |
|
|
|
10 |
# Load environment variables
|
11 |
load_dotenv()
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
# Initialize the OpenAI client (if needed for Hugging Face Inference API)
|
14 |
client = OpenAI(
|
15 |
base_url="https://api-inference.huggingface.co/v1",
|
16 |
api_key=os.environ.get("HUGGINGFACEHUB_API_TOKEN"),
|
17 |
)
|
18 |
|
19 |
+
# Define model links and configurations
|
20 |
+
model_links = {
|
21 |
+
"HAH-2024-v0.1": "drmasad/HAH-2024-v0.11",
|
22 |
+
"Mistral": "mistralai/Mistral-7B-Instruct-v0.2",
|
23 |
+
}
|
24 |
+
|
25 |
# Define sidebar options
|
26 |
models = list(model_links.keys())
|
27 |
|