Hafiza Maham
commited on
Commit
·
6cfb658
1
Parent(s):
f9dbb85
Add application file
Browse files
app.py
CHANGED
@@ -335,6 +335,10 @@ def warmup():
|
|
335 |
return jsonify({'status': 'Models warmed up and embeddings ready.'})
|
336 |
except Exception as e:
|
337 |
return jsonify({'error': str(e)})
|
|
|
|
|
|
|
|
|
338 |
|
339 |
|
340 |
if __name__ == '__main__':
|
|
|
335 |
return jsonify({'status': 'Models warmed up and embeddings ready.'})
|
336 |
except Exception as e:
|
337 |
return jsonify({'error': str(e)})
|
338 |
+
|
339 |
+
@app.route('/')
|
340 |
+
def home():
|
341 |
+
return "API is live!"
|
342 |
|
343 |
|
344 |
if __name__ == '__main__':
|