asdfaman commited on
Commit
44e1aeb
·
verified ·
1 Parent(s): 200bbb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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")