Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ import torch
|
|
| 6 |
import gradio as gr
|
| 7 |
from huggingface_hub import snapshot_download
|
| 8 |
from bert_handler import create_handler_from_checkpoint
|
|
|
|
| 9 |
|
| 10 |
# ------------------------------------------------------------------
|
| 11 |
# 1. Download *once* and load locally -----------------------------
|
|
|
|
| 6 |
import gradio as gr
|
| 7 |
from huggingface_hub import snapshot_download
|
| 8 |
from bert_handler import create_handler_from_checkpoint
|
| 9 |
+
from pathlib import Path
|
| 10 |
|
| 11 |
# ------------------------------------------------------------------
|
| 12 |
# 1. Download *once* and load locally -----------------------------
|