rr19tech commited on
Commit
3fa0fdb
·
verified ·
1 Parent(s): 2177d26
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -68,7 +68,7 @@ app.add_middleware(
68
  # Define Method 1: Triggers when client calls /gradio_api/call/update_data
69
  #@app.api(name="call_private_api")
70
  @app.post("/call_private_api")
71
- async call_private_api(user_input: str) -> dict:
72
  #def call_private_api(user_input: str = Body(..., embed=True)) -> dict:
73
 
74
  headers = {
@@ -101,7 +101,7 @@ async call_private_api(user_input: str) -> dict:
101
 
102
  #@app.api(name="user_feedback")
103
  @app.post("/user_feedback")
104
- def process_user_feedback(user_input: str) -> dict:
105
 
106
  headers = {
107
  "Authorization": f"Bearer {DB_HF_TOKEN}",
 
68
  # Define Method 1: Triggers when client calls /gradio_api/call/update_data
69
  #@app.api(name="call_private_api")
70
  @app.post("/call_private_api")
71
+ async def call_private_api(user_input: str) -> dict:
72
  #def call_private_api(user_input: str = Body(..., embed=True)) -> dict:
73
 
74
  headers = {
 
101
 
102
  #@app.api(name="user_feedback")
103
  @app.post("/user_feedback")
104
+ async def process_user_feedback(user_input: str) -> dict:
105
 
106
  headers = {
107
  "Authorization": f"Bearer {DB_HF_TOKEN}",