Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -11,13 +11,13 @@ dotenv.config();
|
|
| 11 |
|
| 12 |
const app = express();
|
| 13 |
const port = process.env.PORT || 7860;
|
| 14 |
-
|
| 15 |
const __filename = fileURLToPath(import.meta.url);
|
| 16 |
const __dirname = path.dirname(__filename);
|
| 17 |
|
| 18 |
app.use(bodyParser.urlencoded({ extended: true }));
|
| 19 |
app.use(express.static('public'));
|
| 20 |
app.use('/mnt', express.static('/mnt'));
|
|
|
|
| 21 |
|
| 22 |
const genAI = new GoogleGenerativeAI(process.env.GEMINI_API_KEY);
|
| 23 |
|
|
|
|
| 11 |
|
| 12 |
const app = express();
|
| 13 |
const port = process.env.PORT || 7860;
|
|
|
|
| 14 |
const __filename = fileURLToPath(import.meta.url);
|
| 15 |
const __dirname = path.dirname(__filename);
|
| 16 |
|
| 17 |
app.use(bodyParser.urlencoded({ extended: true }));
|
| 18 |
app.use(express.static('public'));
|
| 19 |
app.use('/mnt', express.static('/mnt'));
|
| 20 |
+
app.use('/tmp', express.static('/tmp'));
|
| 21 |
|
| 22 |
const genAI = new GoogleGenerativeAI(process.env.GEMINI_API_KEY);
|
| 23 |
|