adhvaithprasad commited on
Commit
4baab8b
·
1 Parent(s): c6f40e8

tweaked the code for the error in HF

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,17 +21,17 @@ def greet_json():
21
 
22
 
23
  @app.post("/calculate")
24
- def calculate(input:User_input):
25
  res= calculate(input.operation, input.x, input.y)
26
  return res
27
 
28
  @app.post("/sentimentAnalysis")
29
- def sentimentAnalysis(input:User_input):
30
  res= sentimentAnalysis(input.sentence)
31
  return res
32
 
33
  @app.post("/getReply")
34
- def getReply(input:User_input):
35
  res= customerConverstaion(input.sentence)
36
  return res
37
 
 
21
 
22
 
23
  @app.post("/calculate")
24
+ def calculate_func(input:User_input):
25
  res= calculate(input.operation, input.x, input.y)
26
  return res
27
 
28
  @app.post("/sentimentAnalysis")
29
+ def sentimentAnalysis_func(input:User_input):
30
  res= sentimentAnalysis(input.sentence)
31
  return res
32
 
33
  @app.post("/getReply")
34
+ def getReply_func(input:User_input):
35
  res= customerConverstaion(input.sentence)
36
  return res
37