mratanusarkar commited on
Commit
33deb8d
·
1 Parent(s): 04f7a32

chore: fix linting and code formatting

Browse files
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import streamlit as st
2
  import weave
3
- from dotenv import load_dotenv
4
 
5
  from medrag_multi_modal.assistant import (
6
  FigureAnnotatorFromPageImage,
 
1
  import streamlit as st
2
  import weave
 
3
 
4
  from medrag_multi_modal.assistant import (
5
  FigureAnnotatorFromPageImage,
medrag_multi_modal/document_loader/image_loader/base_img_loader.py CHANGED
@@ -5,8 +5,8 @@ from typing import Dict, List, Optional
5
 
6
  import jsonlines
7
  import rich
8
-
9
  import wandb
 
10
  from medrag_multi_modal.document_loader.text_loader.base_text_loader import (
11
  BaseTextLoader,
12
  )
 
5
 
6
  import jsonlines
7
  import rich
 
8
  import wandb
9
+
10
  from medrag_multi_modal.document_loader.text_loader.base_text_loader import (
11
  BaseTextLoader,
12
  )
medrag_multi_modal/retrieval/bm25s_retrieval.py CHANGED
@@ -3,11 +3,10 @@ from glob import glob
3
  from typing import Optional
4
 
5
  import bm25s
 
6
  import weave
7
  from Stemmer import Stemmer
8
 
9
- import wandb
10
-
11
  LANGUAGE_DICT = {
12
  "english": "en",
13
  "french": "fr",
 
3
  from typing import Optional
4
 
5
  import bm25s
6
+ import wandb
7
  import weave
8
  from Stemmer import Stemmer
9
 
 
 
10
  LANGUAGE_DICT = {
11
  "english": "en",
12
  "french": "fr",
medrag_multi_modal/retrieval/colpali_retrieval.py CHANGED
@@ -6,9 +6,8 @@ import weave
6
  if TYPE_CHECKING:
7
  from byaldi import RAGMultiModalModel
8
 
9
- from PIL import Image
10
-
11
  import wandb
 
12
 
13
  from ..utils import get_wandb_artifact
14
 
 
6
  if TYPE_CHECKING:
7
  from byaldi import RAGMultiModalModel
8
 
 
 
9
  import wandb
10
+ from PIL import Image
11
 
12
  from ..utils import get_wandb_artifact
13
 
medrag_multi_modal/retrieval/common.py CHANGED
@@ -3,7 +3,6 @@ from enum import Enum
3
  import safetensors
4
  import safetensors.torch
5
  import torch
6
-
7
  import wandb
8
 
9
 
 
3
  import safetensors
4
  import safetensors.torch
5
  import torch
 
6
  import wandb
7
 
8
 
medrag_multi_modal/utils.py CHANGED
@@ -3,9 +3,8 @@ import io
3
 
4
  import jsonlines
5
  import torch
6
- from PIL import Image
7
-
8
  import wandb
 
9
 
10
 
11
  def get_wandb_artifact(
 
3
 
4
  import jsonlines
5
  import torch
 
 
6
  import wandb
7
+ from PIL import Image
8
 
9
 
10
  def get_wandb_artifact(