Spaces:
Sleeping
Sleeping
Timo
commited on
Commit
·
2bd322b
1
Parent(s):
7b27ea8
OK
Browse files- src/draft_model.py +0 -1
- src/streamlit_app.py +5 -2
src/draft_model.py
CHANGED
|
@@ -17,7 +17,6 @@ CARD_FILE = "cards_eoe.json"
|
|
| 17 |
ENCODING_FILE = "card_encodings.pt"
|
| 18 |
|
| 19 |
|
| 20 |
-
os.environ.setdefault("HF_HOME", os.path.expanduser("~/.cache/huggingface"))
|
| 21 |
|
| 22 |
|
| 23 |
class DraftModel:
|
|
|
|
| 17 |
ENCODING_FILE = "card_encodings.pt"
|
| 18 |
|
| 19 |
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
class DraftModel:
|
src/streamlit_app.py
CHANGED
|
@@ -14,14 +14,17 @@ for Hugging Face Spaces deployment.
|
|
| 14 |
|
| 15 |
from __future__ import annotations
|
| 16 |
|
| 17 |
-
import random
|
| 18 |
from pathlib import Path
|
| 19 |
from typing import Dict, List
|
| 20 |
|
| 21 |
import requests
|
| 22 |
import streamlit as st
|
| 23 |
|
| 24 |
-
from draft_model import DraftModel
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
SUPPORTED_SETS_PATH = Path("supported_sets.txt")
|
|
|
|
| 14 |
|
| 15 |
from __future__ import annotations
|
| 16 |
|
| 17 |
+
import random, os
|
| 18 |
from pathlib import Path
|
| 19 |
from typing import Dict, List
|
| 20 |
|
| 21 |
import requests
|
| 22 |
import streamlit as st
|
| 23 |
|
| 24 |
+
from src.draft_model import DraftModel
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
os.environ.setdefault("HF_HOME", os.path.expanduser("~/.cache/huggingface"))
|
| 28 |
|
| 29 |
|
| 30 |
SUPPORTED_SETS_PATH = Path("supported_sets.txt")
|