Spaces:
Sleeping
Sleeping
Florin Bobiș
commited on
Commit
•
c5a40da
1
Parent(s):
4958c80
changes
Browse files- server.py → api/index.py +0 -0
- package.json +5 -0
- requirements.txt +1 -1
- 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 |
-
|
2 |
transformers
|
|
|
1 |
+
Flask==3.0.0
|
2 |
transformers
|
vercel.json
CHANGED
@@ -1,18 +1,5 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
"
|
4 |
-
|
5 |
-
|
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 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|