Skip to content

Commit

Permalink
update requieremnets and app
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudiio committed Dec 8, 2023
1 parent 34d5196 commit 360ac1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ transformers
mlflow
botocore
tensorflow
fsspec==2023.9.2
datasets==2.11
accelerate>=0.20.1
evaluate
Expand Down
4 changes: 2 additions & 2 deletions src/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 360ac1b

Please sign in to comment.