Sort import order and update requirements
Browse files- app.py +1 -1
- requirements.txt +2 -0
app.py
CHANGED
@@ -5,8 +5,8 @@ from typing import List, Optional
|
|
5 |
import pandas as pd
|
6 |
import streamlit as st
|
7 |
from docarray import BaseDoc
|
8 |
-
from docarray.typing import TorchTensor
|
9 |
from docarray.index import InMemoryExactNNIndex
|
|
|
10 |
from transformers import pipeline
|
11 |
|
12 |
INDEX_PATH = Path(__file__).parent.joinpath("data/index.bin")
|
|
|
5 |
import pandas as pd
|
6 |
import streamlit as st
|
7 |
from docarray import BaseDoc
|
|
|
8 |
from docarray.index import InMemoryExactNNIndex
|
9 |
+
from docarray.typing import TorchTensor
|
10 |
from transformers import pipeline
|
11 |
|
12 |
INDEX_PATH = Path(__file__).parent.joinpath("data/index.bin")
|
requirements.txt
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
accelerate
|
2 |
docarray
|
|
|
|
|
3 |
torch
|
4 |
transformers
|
|
|
1 |
accelerate
|
2 |
docarray
|
3 |
+
pandas
|
4 |
+
streamlit
|
5 |
torch
|
6 |
transformers
|