stockNewsApi / app.py
pritmanvar's picture
Upload 8 files
fbd9e3e verified
raw
history blame contribute delete
357 Bytes
from fastapi import FastAPI
from agents import basic_analysis, get_text_post_content
app = FastAPI()
@app.post("/get_basic_analysis")
def handle_basic_analysis(news: dict):
return basic_analysis(news)
@app.post("/get_text_post_content")
def handle_text_post_content(details: str, reference: str):
return get_text_post_content(details, reference)