Spaces:
No application file
No application file
| 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 usefile | |
| from utils import logger | |
| app = FastAPI() | |
| def display_data_frame(): | |
| csv_file = usefile.process_data() | |
| return csv_file.to_csv() |