Skip to content

Commit

Permalink
correcting request format
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudiio committed Dec 8, 2023
1 parent 360ac1b commit 9c435c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def index():
payload = {'msg':text}

# Call your FastAPI API
response = requests.post(api_url,data=payload)
response = requests.post(api_url,json=payload)

if response.status_code == 200:
# Get the results from the API
Expand Down

0 comments on commit 9c435c7

Please sign in to comment.