diff --git a/requirements.txt b/requirements.txt index 8e7bf17..4c5141e 100755 --- a/requirements.txt +++ b/requirements.txt @@ -6,6 +6,7 @@ transformers mlflow botocore tensorflow +fsspec==2023.9.2 datasets==2.11 accelerate>=0.20.1 evaluate diff --git a/src/app/app.py b/src/app/app.py index 13752e9..2f26aad 100644 --- a/src/app/app.py +++ b/src/app/app.py @@ -13,10 +13,10 @@ def index(): text = request.form.get("text") # Build the URL with the text as a parameter - url = f"{api_url}?payload={text.replace(' ', '%20')}" + payload = {'msg':text} # Call your FastAPI API - response = requests.post(url) + response = requests.post(api_url,data=payload) if response.status_code == 200: # Get the results from the API