Spaces:
Runtime error
Runtime error
test
Browse files
app.py
CHANGED
@@ -13,6 +13,10 @@ model = SeamlessM4Tv2Model.from_pretrained("facebook/seamless-m4t-v2-large")
|
|
13 |
UPLOAD_FOLDER = "audio_files"
|
14 |
os.makedirs(UPLOAD_FOLDER, exist_ok=True)
|
15 |
|
|
|
|
|
|
|
|
|
16 |
@app.route("/record", methods=["POST"])
|
17 |
def record_audio():
|
18 |
file = request.files['audio']
|
|
|
13 |
UPLOAD_FOLDER = "audio_files"
|
14 |
os.makedirs(UPLOAD_FOLDER, exist_ok=True)
|
15 |
|
16 |
+
@app.route("/", methods=["GET"])
|
17 |
+
def return_text():
|
18 |
+
return jsonify({"text": "Hello, world!"})
|
19 |
+
|
20 |
@app.route("/record", methods=["POST"])
|
21 |
def record_audio():
|
22 |
file = request.files['audio']
|