molehh's picture
added backend project
e3ca34f
raw
history blame contribute delete
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()
@app.get("/showdata")
def display_data_frame():
csv_file = homepage.process_data()
return csv_file.to_csv()