Omar Sanseviero commited on
Commit
015f54c
·
1 Parent(s): ee8d8d5

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -4
pipeline.py CHANGED
@@ -1,5 +1,4 @@
1
-
2
- from typing import Dict, List, Any
3
 
4
  class PreTrainedPipeline():
5
  def __init__(self, path=""):
@@ -7,8 +6,6 @@ class PreTrainedPipeline():
7
  # Preload all the elements you are going to need at inference.
8
  # For instance your model, processors, tokenizer that might be needed.
9
  # This function is only called once, so do all the heavy processing I/O here"""
10
- Initialize model
11
- """
12
  package = os.path.join(path,"en_core_web_sm-any-py3-none-any.whl")
13
  subprocess.check_call(
14
  [sys.executable, "-m", "pip", "install", package]
 
1
+ \nfrom typing import Dict, List, Any
 
2
 
3
  class PreTrainedPipeline():
4
  def __init__(self, path=""):
 
6
  # Preload all the elements you are going to need at inference.
7
  # For instance your model, processors, tokenizer that might be needed.
8
  # This function is only called once, so do all the heavy processing I/O here"""
 
 
9
  package = os.path.join(path,"en_core_web_sm-any-py3-none-any.whl")
10
  subprocess.check_call(
11
  [sys.executable, "-m", "pip", "install", package]