khoatran94 commited on
Commit
0b5b10c
·
verified ·
1 Parent(s): 31b0aec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,8 +28,8 @@ load_dotenv()
28
  api_token = os.getenv("HF_TOKEN")
29
  huggingface_hub.login(token=api_token)
30
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
31
- tokenizer = AutoTokenizer.from_pretrained('google/gemma-2-9b')
32
- model = AutoModelForCausalLM.from_pretrained('google/gemma-2-9b').to(device)
33
 
34
  #@spaces.GPU
35
  def read_pdf(file_path):
 
28
  api_token = os.getenv("HF_TOKEN")
29
  huggingface_hub.login(token=api_token)
30
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
31
+ tokenizer = AutoTokenizer.from_pretrained('google/gemma-2-2b')
32
+ model = AutoModelForCausalLM.from_pretrained('google/gemma-2-2b').to(device)
33
 
34
  #@spaces.GPU
35
  def read_pdf(file_path):