Spaces:
Runtime error
Runtime error
splits processing
Browse files- src/main.py +2 -0
src/main.py
CHANGED
@@ -29,6 +29,8 @@ EMBED_DS_NAME = os.getenv("EMBED_DS_NAME")
|
|
29 |
INPUT_SPLITS = os.getenv("INPUT_SPLITS")
|
30 |
INPUT_TEXT_COL = os.getenv("INPUT_TEXT_COL")
|
31 |
|
|
|
|
|
32 |
app = FastAPI()
|
33 |
app.state.last_Sha = None
|
34 |
|
|
|
29 |
INPUT_SPLITS = os.getenv("INPUT_SPLITS")
|
30 |
INPUT_TEXT_COL = os.getenv("INPUT_TEXT_COL")
|
31 |
|
32 |
+
INPUT_SPLITS = [spl.strip() for spl in INPUT_SPLITS.split(",") if spl]
|
33 |
+
|
34 |
app = FastAPI()
|
35 |
app.state.last_Sha = None
|
36 |
|