Spaces:
Sleeping
Sleeping
File size: 357 Bytes
fbd9e3e |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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) |