fcernafukuzaki commited on
Commit
aa5098b
1 Parent(s): 5a38f01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -33,11 +33,13 @@ torch.hub.download_url_to_file('https://i.pinimg.com/originals/c2/ce/e0/c2cee056
33
  #model = torch.hub.load('ultralytics/yolov5', 'yolov5s') # force_reload=True to update
34
 
35
  #model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt') # local model o google colab
36
- model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt', force_reload=True, autoshape=True) # local model o google colab
37
  #model = torch.hub.load('path/to/yolov5', 'custom', path='/content/yolov56.pt', source='local') # local repo
 
 
38
 
39
  HF_TOKEN = os.getenv("ZIKA_TOKEN_WRITE")
40
- hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "Municipalidad-de-Vicente-Lopez/Trampas_Barcelo_dataset")
41
 
42
  def getQuantity(string):
43
  contador_raw = ''.join(string.split(" ")[3:])
 
33
  #model = torch.hub.load('ultralytics/yolov5', 'yolov5s') # force_reload=True to update
34
 
35
  #model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt') # local model o google colab
36
+ #model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt', force_reload=True, autoshape=True) # local model o google colab
37
  #model = torch.hub.load('path/to/yolov5', 'custom', path='/content/yolov56.pt', source='local') # local repo
38
+ model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt', force_reload=True, autoshape=True, trust_repo=True)
39
+
40
 
41
  HF_TOKEN = os.getenv("ZIKA_TOKEN_WRITE")
42
+ hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "demo-iazika-flags")
43
 
44
  def getQuantity(string):
45
  contador_raw = ''.join(string.split(" ")[3:])