checking
Browse files12345626 unmodified lines333435363738from transformers import pipelineimport spacesimport jsonclass Tagger():26 unmodified lines@spaces.GPUdef tag(self, text):prompt = self.prompt + textmessages = [123456726 unmodified lines3435363738394041from transformers import pipelineimport spacesimport jsonimport torchclass Tagger():26 unmodified lines@spaces.GPUdef tag(self, text):print("cuda available:", torch.cuda.is_available())print("cuda devices:", torch.cuda.device_count())prompt = self.prompt + textmessages = [
123456789import osfrom Tagger import Taggerimport torchprint("cuda available:", torch.cuda.is_available())print("cuda devices:", torch.cuda.device_count())model = "meta-llama/Llama-3.1-8B-Instruct"1234567import osfrom Tagger import Taggermodel = "meta-llama/Llama-3.1-8B-Instruct"
Tagger.py+3
app.py+1-3