Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- app.py +24 -0
- requirements.txt +1 -0
app.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// next.config.js
|
| 2 |
+
/** @type {import('next').NextConfig} */
|
| 3 |
+
const nextConfig = {
|
| 4 |
+
output: 'standalone',
|
| 5 |
+
experimental: {
|
| 6 |
+
serverActions: {
|
| 7 |
+
bodySizeLimit: '2mb',
|
| 8 |
+
},
|
| 9 |
+
},
|
| 10 |
+
images: {
|
| 11 |
+
remotePatterns: [
|
| 12 |
+
{
|
| 13 |
+
protocol: 'https',
|
| 14 |
+
hostname: 'huggingface.co',
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
protocol: 'https',
|
| 18 |
+
hostname: '*.hf.space',
|
| 19 |
+
},
|
| 20 |
+
],
|
| 21 |
+
},
|
| 22 |
+
};
|
| 23 |
+
|
| 24 |
+
module.exports = nextConfig;
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
# No additional dependencies required
|