Thouph commited on
Commit
d93389c
1 Parent(s): 8e922f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ import gradio as gr
7
  from datetime import datetime
8
  torch.set_grad_enabled(False)
9
 
10
- model = Qwen2ForSequenceClassification.from_pretrained("Thouph/prompt2tag-qwen2-0.5b-v0.1", num_labels = 9940, map_location=torch.device('cpu'))
11
  model.eval()
12
  tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-0.5B")
13
 
 
7
  from datetime import datetime
8
  torch.set_grad_enabled(False)
9
 
10
+ model = Qwen2ForSequenceClassification.from_pretrained("Thouph/prompt2tag-qwen2-0.5b-v0.1", num_labels = 9940, device_map="cpu")
11
  model.eval()
12
  tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-0.5B")
13