Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -7,8 +7,8 @@ import uvicorn # Import uvicorn for running the FastAPI application
|
|
7 |
app = FastAPI() # Create a FastAPI instance
|
8 |
|
9 |
# Define the primary and fallback models
|
10 |
-
primary = "
|
11 |
-
fallbacks = ["mistralai/Mistral-7B-Instruct-v0.2", "
|
12 |
|
13 |
# Load Hugging Face API Key
|
14 |
HF_API_KEY = os.getenv("HF_API_TOKEN") # Get API key from environment variables
|
|
|
7 |
app = FastAPI() # Create a FastAPI instance
|
8 |
|
9 |
# Define the primary and fallback models
|
10 |
+
primary = "Qwen2.5-0.5B"
|
11 |
+
fallbacks = ["mistralai/Mistral-7B-Instruct-v0.2", "facebook/bart-large-mnli"]
|
12 |
|
13 |
# Load Hugging Face API Key
|
14 |
HF_API_KEY = os.getenv("HF_API_TOKEN") # Get API key from environment variables
|