Spaces:
No application file
No application file
File size: 359 Bytes
7df128f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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()
@app.get("/showdata")
def display_data_frame():
csv_file = usefile.process_data()
return csv_file.to_csv() |