github-actions[bot] commited on
Commit ·
2158e23
1
Parent(s): 7d38aef
Auto-deploy from GitHub: 0a8492bc6fed1a675336399a5d935c1aff30b467
Browse files- app/main.py +2 -0
- download_libs.sh +12 -0
- index.html +1 -1
- static/js/tailwind.min.js +0 -0
app/main.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
from contextlib import asynccontextmanager
|
| 2 |
from fastapi import FastAPI
|
| 3 |
from fastapi.middleware.cors import CORSMiddleware
|
|
|
|
| 4 |
from app.api.routes import router
|
| 5 |
from app.db.database import init_db
|
| 6 |
from custom_logger import logger_config as logger
|
|
@@ -28,4 +29,5 @@ app.add_middleware(
|
|
| 28 |
allow_headers=["*"],
|
| 29 |
)
|
| 30 |
|
|
|
|
| 31 |
app.include_router(router)
|
|
|
|
| 1 |
from contextlib import asynccontextmanager
|
| 2 |
from fastapi import FastAPI
|
| 3 |
from fastapi.middleware.cors import CORSMiddleware
|
| 4 |
+
from fastapi.staticfiles import StaticFiles
|
| 5 |
from app.api.routes import router
|
| 6 |
from app.db.database import init_db
|
| 7 |
from custom_logger import logger_config as logger
|
|
|
|
| 29 |
allow_headers=["*"],
|
| 30 |
)
|
| 31 |
|
| 32 |
+
app.mount("/static", StaticFiles(directory="static"), name="static")
|
| 33 |
app.include_router(router)
|
download_libs.sh
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
mkdir -p static/js
|
| 4 |
+
|
| 5 |
+
# Tailwind CSS CDN play bundle (v3 with forms + container-queries plugins)
|
| 6 |
+
# cdn.tailwindcss.com may fail DNS on some networks — resolve via known IP
|
| 7 |
+
echo "Downloading tailwind.min.js..."
|
| 8 |
+
curl -L --resolve "cdn.tailwindcss.com:443:104.26.2.143" \
|
| 9 |
+
"https://cdn.tailwindcss.com/?plugins=forms,container-queries" \
|
| 10 |
+
-o static/js/tailwind.min.js
|
| 11 |
+
|
| 12 |
+
echo "Done. Files saved to static/js/"
|
index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
<title>STT - Speech to Text</title>
|
| 8 |
|
| 9 |
<!-- External Assets -->
|
| 10 |
-
<script src="
|
| 11 |
<link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Caveat:wght@400..700&display=swap"
|
| 12 |
rel="stylesheet" />
|
| 13 |
<link
|
|
|
|
| 7 |
<title>STT - Speech to Text</title>
|
| 8 |
|
| 9 |
<!-- External Assets -->
|
| 10 |
+
<script src="/static/js/tailwind.min.js"></script>
|
| 11 |
<link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Caveat:wght@400..700&display=swap"
|
| 12 |
rel="stylesheet" />
|
| 13 |
<link
|
static/js/tailwind.min.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|