Guy24 commited on
Commit
2a07c73
·
1 Parent(s): a134b8a

adding application

Browse files
Files changed (2) hide show
  1. app.py +1 -2
  2. requirements.txt +1 -2
app.py CHANGED
@@ -3,14 +3,13 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
3
  import gradio as gr
4
  import pandas as pd
5
  from functools import lru_cache
6
- import Tokens2Words
7
 
8
  # ----------------------------------------------------------------------
9
  # IMPORTANT: This version uses the PatchscopesRetriever implementation
10
  # from the Tokens2Words paper (https://github.com/schwartz-lab-NLP/Tokens2Words)
11
  # ----------------------------------------------------------------------
12
  try:
13
- from Tokens2Words.word_retriever import PatchscopesRetriever # pip install tokens2words
14
  except ImportError:
15
  PatchscopesRetriever = None
16
 
 
3
  import gradio as gr
4
  import pandas as pd
5
  from functools import lru_cache
 
6
 
7
  # ----------------------------------------------------------------------
8
  # IMPORTANT: This version uses the PatchscopesRetriever implementation
9
  # from the Tokens2Words paper (https://github.com/schwartz-lab-NLP/Tokens2Words)
10
  # ----------------------------------------------------------------------
11
  try:
12
+ from .word_retriever import PatchscopesRetriever # pip install tokens2words
13
  except ImportError:
14
  PatchscopesRetriever = None
15
 
requirements.txt CHANGED
@@ -2,5 +2,4 @@ torch
2
  transformers
3
  pandas
4
  tqdm
5
- scikit-learn
6
- git+https://github.com/schwartz-lab-NLP/Tokens2Words
 
2
  transformers
3
  pandas
4
  tqdm
5
+ scikit-learn