Spaces:
Running
Running
Bouaziz-bad
commited on
Commit
·
3697d7f
1
Parent(s):
51fa8cd
Change app.py for small test
Browse files
app.py
CHANGED
@@ -1,15 +1,16 @@
|
|
1 |
from flask import Flask
|
2 |
|
3 |
-
# Create a Flask application instance
|
4 |
app = Flask(__name__)
|
5 |
|
6 |
@app.route("/")
|
7 |
def hello_world():
|
8 |
return "Hello from the backend!"
|
9 |
|
|
|
|
|
|
|
|
|
10 |
# Add a simple test route for transcription logic
|
11 |
@app.route("/transcribe", methods=['POST'])
|
12 |
def transcribe_test():
|
13 |
-
# In a real app, you would get audio from the request here
|
14 |
-
# For this test, we'll just return a success message
|
15 |
return "Backend received audio and is ready to transcribe!"
|
|
|
1 |
from flask import Flask
|
2 |
|
|
|
3 |
app = Flask(__name__)
|
4 |
|
5 |
@app.route("/")
|
6 |
def hello_world():
|
7 |
return "Hello from the backend!"
|
8 |
|
9 |
+
@app.route("/health")
|
10 |
+
def health_check():
|
11 |
+
return "Healthy", 200
|
12 |
+
|
13 |
# Add a simple test route for transcription logic
|
14 |
@app.route("/transcribe", methods=['POST'])
|
15 |
def transcribe_test():
|
|
|
|
|
16 |
return "Backend received audio and is ready to transcribe!"
|