Spaces:
Sleeping
Sleeping
File size: 355 Bytes
ad88099 ce4d149 ad88099 ce4d149 38f1ba6 |
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(data: dict):
return get_text_post_content(data['details'], data['reference']) |