Florin Bobiș commited on
Commit
c5a40da
1 Parent(s): 4958c80
Files changed (4) hide show
  1. server.py → api/index.py +0 -0
  2. package.json +5 -0
  3. requirements.txt +1 -1
  4. vercel.json +4 -17
server.py → api/index.py RENAMED
File without changes
package.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "engines": {
3
+ "node": "18.x"
4
+ }
5
+ }
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
- flask==3.0.0
2
  transformers
 
1
+ Flask==3.0.0
2
  transformers
vercel.json CHANGED
@@ -1,18 +1,5 @@
1
  {
2
- "version": 2,
3
- "builds": [
4
- {
5
- "src": "/server.py",
6
- "use": "@vercel/python",
7
- "config": {
8
- "maxLambdaSize": "350mb"
9
- }
10
- }
11
- ],
12
- "routes": [
13
- {
14
- "src": "/(.*)",
15
- "dest": "/server.py"
16
- }
17
- ]
18
- }
 
1
  {
2
+ "rewrites": [
3
+ { "source": "/(.*)", "destination": "/api/index" }
4
+ ]
5
+ }