Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -49,7 +49,6 @@ app.post('/translate', async (req, res) => {
|
|
49 |
target_lang,
|
50 |
};
|
51 |
res.json(responseData);
|
52 |
-
console.log(`"${text}" -> "${result.text}"`);
|
53 |
} catch (error) {
|
54 |
console.error(`Translation failed: ${error}`);
|
55 |
res.status(500).json({ error: 'Translation failed' });
|
|
|
49 |
target_lang,
|
50 |
};
|
51 |
res.json(responseData);
|
|
|
52 |
} catch (error) {
|
53 |
console.error(`Translation failed: ${error}`);
|
54 |
res.status(500).json({ error: 'Translation failed' });
|