Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -41,6 +41,8 @@ app.post('/translate', async (req, res) => {
|
|
41 |
target_lang,
|
42 |
}
|
43 |
res.json(responseData)
|
|
|
|
|
44 |
} catch (error) {
|
45 |
res.status(500).json({ error: 'Translation failed' })
|
46 |
} finally {
|
|
|
41 |
target_lang,
|
42 |
}
|
43 |
res.json(responseData)
|
44 |
+
console.log(`"${text}" -> "${result.text}"`)
|
45 |
+
|
46 |
} catch (error) {
|
47 |
res.status(500).json({ error: 'Translation failed' })
|
48 |
} finally {
|