Jforeverss commited on
Commit
065e758
·
1 Parent(s): 9fdc6e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -9,6 +9,9 @@ import openai
9
  from torch import nn
10
  import torch.nn.functional as F
11
  from nltk.tokenize import sent_tokenize
 
 
 
12
 
13
  # Download the 'punkt' package
14
  nltk.download('punkt')
@@ -35,7 +38,7 @@ class Bert_model(nn.Module):
35
  return logits
36
 
37
  # Load the model
38
- model_path = "Jforeverss/finchat222/model.pt" # Replace with your actual model path
39
  state_dict = torch.load(model_path)
40
  device = "cuda" # or "cpu" if GPU is not available
41
 
 
9
  from torch import nn
10
  import torch.nn.functional as F
11
  from nltk.tokenize import sent_tokenize
12
+ import os
13
+
14
+ print(os.listdir('.'))
15
 
16
  # Download the 'punkt' package
17
  nltk.download('punkt')
 
38
  return logits
39
 
40
  # Load the model
41
+ model_path = "finchat222/model.pt" # Replace with your actual model path
42
  state_dict = torch.load(model_path)
43
  device = "cuda" # or "cpu" if GPU is not available
44