Spaces:
Sleeping
Sleeping
Tanner Davis commited on
Commit ·
ed2b9cf
1
Parent(s): 58c4a85
import local papertrail files to pythonpath
Browse files
main.py
CHANGED
|
@@ -2,7 +2,9 @@
|
|
| 2 |
|
| 3 |
Set PAPERTRAIL_MOCK=true to run the UI with no GPU/model (mock inference).
|
| 4 |
"""
|
| 5 |
-
|
|
|
|
|
|
|
| 6 |
from papertrail.app.main import main as demo_main
|
| 7 |
|
| 8 |
if __name__ == "__main__":
|
|
|
|
| 2 |
|
| 3 |
Set PAPERTRAIL_MOCK=true to run the UI with no GPU/model (mock inference).
|
| 4 |
"""
|
| 5 |
+
import sys
|
| 6 |
+
import pathlib
|
| 7 |
+
sys.path.insert(0, str(pathlib.Path(__file__).parent / "src"))
|
| 8 |
from papertrail.app.main import main as demo_main
|
| 9 |
|
| 10 |
if __name__ == "__main__":
|