Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,10 +4,10 @@ from agents import basic_analysis, get_text_post_content
|
|
| 4 |
|
| 5 |
app = FastAPI()
|
| 6 |
|
| 7 |
-
@app.post("/get_basic_analysis
|
| 8 |
def handle_basic_analysis(news: dict):
|
| 9 |
return basic_analysis(news)
|
| 10 |
|
| 11 |
-
@app.post("/get_text_post_content
|
| 12 |
def handle_text_post_content(data: dict):
|
| 13 |
return get_text_post_content(data['details'], data['reference'])
|
|
|
|
| 4 |
|
| 5 |
app = FastAPI()
|
| 6 |
|
| 7 |
+
@app.post("/get_basic_analysis")
|
| 8 |
def handle_basic_analysis(news: dict):
|
| 9 |
return basic_analysis(news)
|
| 10 |
|
| 11 |
+
@app.post("/get_text_post_content")
|
| 12 |
def handle_text_post_content(data: dict):
|
| 13 |
return get_text_post_content(data['details'], data['reference'])
|