Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from flask_cors import CORS
|
|
3 |
from audio_generator import generate_audio
|
4 |
import os
|
5 |
|
6 |
-
app = Flask(
|
7 |
CORS(app)
|
8 |
|
9 |
@app.route('/health', methods=['GET'])
|
@@ -29,5 +29,5 @@ def generate_audio_route():
|
|
29 |
except Exception as e:
|
30 |
return jsonify({"error": str(e)}), 500
|
31 |
|
32 |
-
if
|
33 |
app.run(host='0.0.0.0', port=7860)
|
|
|
3 |
from audio_generator import generate_audio
|
4 |
import os
|
5 |
|
6 |
+
app = Flask(__name__)
|
7 |
CORS(app)
|
8 |
|
9 |
@app.route('/health', methods=['GET'])
|
|
|
29 |
except Exception as e:
|
30 |
return jsonify({"error": str(e)}), 500
|
31 |
|
32 |
+
if __name__ == "__main__":
|
33 |
app.run(host='0.0.0.0', port=7860)
|