Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
# Updating the app to use only the encoder from the model, ensuring symbolic support
|
2 |
|
|
|
3 |
from bert_handler import create_handler_from_checkpoint
|
4 |
import torch
|
5 |
import gradio as gr
|
6 |
import re
|
7 |
from pathlib import Path
|
8 |
-
import spaces
|
9 |
from huggingface_hub import snapshot_download
|
10 |
|
11 |
# Load checkpoint using BERTHandler (loads tokenizer and full model)
|
|
|
1 |
# Updating the app to use only the encoder from the model, ensuring symbolic support
|
2 |
|
3 |
+
import spaces
|
4 |
from bert_handler import create_handler_from_checkpoint
|
5 |
import torch
|
6 |
import gradio as gr
|
7 |
import re
|
8 |
from pathlib import Path
|
|
|
9 |
from huggingface_hub import snapshot_download
|
10 |
|
11 |
# Load checkpoint using BERTHandler (loads tokenizer and full model)
|