pritmanvar-bacancy commited on
Commit
ce4d149
·
verified ·
1 Parent(s): 3523cf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-1")
8
  def handle_basic_analysis(news: dict):
9
  return basic_analysis(news)
10
 
11
- @app.post("/get_text_post_content-1")
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'])