Spaces:
Build error
Build error
Download backend/api/app.py from molehh/huggingface_backend: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/spaces/molehh/huggingface_backend/resolve/main/backend/api/app.py
- Command line
-
hf download hf://spaces/molehh/huggingface_backend/backend/api/app.py
-
curl -L -o app.py https://huggingface.co/spaces/molehh/huggingface_backend/resolve/main/backend/api/app.py
361 Bytes
| from fastapi import FastAPI | |
| import os | |
| import sys | |
| src_directory = os.path.abspath(os.path.join(os.path.dirname(__file__), "../..", "backend")) | |
| sys.path.append(src_directory) | |
| from modules import homepage | |
| from utils import logger | |
| app = FastAPI() | |
| def display_data_frame(): | |
| csv_file = homepage.process_data() | |
| return csv_file.to_csv() |