Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,13 +6,13 @@ from PIL import Image, ImageOps
|
|
6 |
import time
|
7 |
from paddleocr import PaddleOCR
|
8 |
import os
|
9 |
-
from dotenv import load_dotenv
|
10 |
import torch
|
11 |
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
|
12 |
|
13 |
# Load environment variables
|
14 |
-
load_dotenv()
|
15 |
-
huggingface_token = os.getenv("HF_TOKEN")
|
16 |
|
17 |
# Load TinyBERT model and tokenizer
|
18 |
tokenizer = AutoTokenizer.from_pretrained("Intel/dynamic_tinybert")
|
|
|
6 |
import time
|
7 |
from paddleocr import PaddleOCR
|
8 |
import os
|
9 |
+
# from dotenv import load_dotenv
|
10 |
import torch
|
11 |
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
|
12 |
|
13 |
# Load environment variables
|
14 |
+
# load_dotenv()
|
15 |
+
# huggingface_token = os.getenv("HF_TOKEN")
|
16 |
|
17 |
# Load TinyBERT model and tokenizer
|
18 |
tokenizer = AutoTokenizer.from_pretrained("Intel/dynamic_tinybert")
|