Spaces:
Sleeping
Sleeping
cambios en el readme para que HF funcione y en la base de datos
Browse files- README.md +10 -0
- interface/database.py +4 -1
README.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# 👁️ OphthalmoCapture
|
| 2 |
|
| 3 |
**Sistema de Etiquetado Médico Oftalmológico** — Interfaz web para cargar imágenes de fondo de ojo, etiquetarlas (catarata / no catarata), dictar observaciones por voz con transcripción automática (Whisper) y descargar el paquete de etiquetado completo.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: OphthalmoCapture
|
| 3 |
+
emoji: 👁️
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_file: interface/main.py
|
| 8 |
+
pinned: false
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
# 👁️ OphthalmoCapture
|
| 12 |
|
| 13 |
**Sistema de Etiquetado Médico Oftalmológico** — Interfaz web para cargar imágenes de fondo de ojo, etiquetarlas (catarata / no catarata), dictar observaciones por voz con transcripción automática (Whisper) y descargar el paquete de etiquetado completo.
|
interface/database.py
CHANGED
|
@@ -17,7 +17,10 @@ except ImportError:
|
|
| 17 |
FIREBASE_AVAILABLE = False
|
| 18 |
|
| 19 |
DB_TYPE = "SQLITE"
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
| 21 |
db_ref = None
|
| 22 |
|
| 23 |
|
|
|
|
| 17 |
FIREBASE_AVAILABLE = False
|
| 18 |
|
| 19 |
DB_TYPE = "SQLITE"
|
| 20 |
+
# Use /tmp for writable storage in Docker (ephemeral but always writable).
|
| 21 |
+
# Locally, falls back to the script's own directory.
|
| 22 |
+
_DB_DIR = "/tmp" if os.path.isdir("/tmp") else os.path.dirname(os.path.abspath(__file__))
|
| 23 |
+
DB_FILE = os.path.join(_DB_DIR, "annotations.db")
|
| 24 |
db_ref = None
|
| 25 |
|
| 26 |
|