Spaces:
Running
Running
DeFactOfficial
commited on
Commit
•
f84190a
1
Parent(s):
996c544
Update api.js
Browse files
api.js
CHANGED
@@ -202,8 +202,9 @@ app.post('api/generate/speech', async (req, res) =>{
|
|
202 |
})
|
203 |
|
204 |
|
205 |
-
app.get('/api/hello',
|
206 |
-
|
|
|
207 |
res.end()
|
208 |
})
|
209 |
// This is normal TTS: specify voice, text, model. Voices are from openai, use those names or the aliases in lookup table
|
|
|
202 |
})
|
203 |
|
204 |
|
205 |
+
app.get('/api/hello', (req, res) => {
|
206 |
+
res.setHeader("Content-Type", "application/json")
|
207 |
+
res.json({"hello": "goodbye"})
|
208 |
res.end()
|
209 |
})
|
210 |
// This is normal TTS: specify voice, text, model. Voices are from openai, use those names or the aliases in lookup table
|