initial commit
Browse files
app.py
CHANGED
|
@@ -12,9 +12,9 @@ from classy.utils.streamlit import get_md_200_random_color_generator
|
|
| 12 |
|
| 13 |
|
| 14 |
def main(
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
):
|
| 19 |
# setup examples
|
| 20 |
examples = [
|
|
@@ -187,4 +187,8 @@ def main(
|
|
| 187 |
|
| 188 |
|
| 189 |
if __name__ == "__main__":
|
| 190 |
-
main(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
def main(
|
| 15 |
+
model_checkpoint_path: str,
|
| 16 |
+
default_inventory_path: str,
|
| 17 |
+
cuda_device: int,
|
| 18 |
):
|
| 19 |
# setup examples
|
| 20 |
examples = [
|
|
|
|
| 187 |
|
| 188 |
|
| 189 |
if __name__ == "__main__":
|
| 190 |
+
main(
|
| 191 |
+
"experiments/extend-longformer-large/2021-10-22/09-11-39/checkpoints/best.ckpt",
|
| 192 |
+
"data/inventories/aida.tsv",
|
| 193 |
+
cuda_device=-1,
|
| 194 |
+
)
|