Spaces:
Sleeping
Sleeping
Update app/main.py
Browse files- app/main.py +1 -1
app/main.py
CHANGED
|
@@ -7,7 +7,7 @@ from starlette.responses import FileResponse
|
|
| 7 |
import os
|
| 8 |
app = FastAPI()
|
| 9 |
os.environ['SENTENCE_TRANSFORMERS_HOME'] = './.cache' ## For Docker
|
| 10 |
-
app.mount("/files/", StaticFiles(directory='
|
| 11 |
class TextInput(BaseModel):
|
| 12 |
InputText: str # python casing??????
|
| 13 |
|
|
|
|
| 7 |
import os
|
| 8 |
app = FastAPI()
|
| 9 |
os.environ['SENTENCE_TRANSFORMERS_HOME'] = './.cache' ## For Docker
|
| 10 |
+
app.mount("/files/", StaticFiles(directory='app'), name="index")
|
| 11 |
class TextInput(BaseModel):
|
| 12 |
InputText: str # python casing??????
|
| 13 |
|