Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on vercel #15

Open
arslan2012 opened this issue Jan 15, 2024 · 3 comments
Open

Doesn't work on vercel #15

arslan2012 opened this issue Jan 15, 2024 · 3 comments

Comments

@arslan2012
Copy link

arslan2012 commented Jan 15, 2024

Just by adding a few python dependencies, the vercel build will time out and fail

reproduction:

diff --git a/requirements.txt b/requirements.txt
index 1428c53..384a2ad 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,2 +1,9 @@
 fastapi==0.100.1
-uvicorn[standard]==0.23.2
\ No newline at end of file
+uvicorn[standard]==0.23.2
+librosa==0.10.1
+pydantic==2.5.3
+scikit_learn==1.3.2
+scipy==1.11.4
+torch==2.1.2
+transformers==4.36.2
+python-multipart

Screenshot 2024-01-15 at 2 39 04 PM

@AGI-CEO
Copy link

AGI-CEO commented Jan 24, 2024

I have same issue and saw this post (https://github.com/orgs/vercel/discussions/4354) which looks promising, however I'm probably going to deploy the fastapi backend elsewhere.

Looks like you're also building an AI nextjs app. If you're looking for free deployment, you can deploy your fastapi to render and redirect your frontend api request while keeping the frontend deployed to vercel

@arslan2012
Copy link
Author

yeah non of the suggestions on thatpost worked for me. I think there's somthing wrong with the vercel build process, it keeped downloading multiple copies of the python dependency and racked it up to 5GB. deleting .next folder didn't help.

Since this is just my passion project, and I don't know any other hosting that hosts python for free. I might just sit this one out, until python runtime is out of beta on vercel.

@peterdresslar
Copy link

i think this issue should be closed... deploying this example straight from the examples does work fine, even though fastapi is super tricky on vercel. The title of this issue is misleading, though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants