Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,14 @@ chatbot_service = GrammarChatbot()
|
|
22 |
logging.basicConfig(level=logging.INFO)
|
23 |
logger = logging.getLogger(__name__)
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
@app.route('/correct_text', methods=['POST'])
|
26 |
def handle_paragraph():
|
27 |
"""Endpoint for conservative paragraph correction"""
|
|
|
22 |
logging.basicConfig(level=logging.INFO)
|
23 |
logger = logging.getLogger(__name__)
|
24 |
|
25 |
+
@app.route('/', methods=['GET'])
|
26 |
+
def home():
|
27 |
+
return '''
|
28 |
+
<h2>📝 Convomate Module</h2>
|
29 |
+
<p>Use POST <code>/correct_text</code> or <code>/chat</code> endpoints.</p>
|
30 |
+
<p>GET <code>/health</code> for health check.</p>
|
31 |
+
'''
|
32 |
+
|
33 |
@app.route('/correct_text', methods=['POST'])
|
34 |
def handle_paragraph():
|
35 |
"""Endpoint for conservative paragraph correction"""
|