Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -9,6 +9,11 @@ Local app (src/antibody_training_esm/cli/app.py) remains unchanged.
|
|
| 9 |
|
| 10 |
import logging
|
| 11 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
import gradio as gr
|
| 14 |
import torch
|
|
|
|
| 9 |
|
| 10 |
import logging
|
| 11 |
import os
|
| 12 |
+
import sys
|
| 13 |
+
from pathlib import Path
|
| 14 |
+
|
| 15 |
+
# Add src to Python path for local imports (HF Spaces doesn't install package)
|
| 16 |
+
sys.path.insert(0, str(Path(__file__).parent / "src"))
|
| 17 |
|
| 18 |
import gradio as gr
|
| 19 |
import torch
|