Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -372,6 +372,11 @@ def home():
|
|
| 372 |
current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 373 |
return jsonify({"message": f"Welcome to TRAVIS API, Time : {current_time}"})
|
| 374 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 375 |
@app.route("/translate", methods=["POST"])
|
| 376 |
def translate_text():
|
| 377 |
if not translation_available or not telugu_model_loaded:
|
|
|
|
| 372 |
current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 373 |
return jsonify({"message": f"Welcome to TRAVIS API, Time : {current_time}"})
|
| 374 |
|
| 375 |
+
|
| 376 |
+
@app.route("/intent")
|
| 377 |
+
def intents():
|
| 378 |
+
return jsonify({"intents" :list(set(df['intent'].dropna()))})
|
| 379 |
+
|
| 380 |
@app.route("/translate", methods=["POST"])
|
| 381 |
def translate_text():
|
| 382 |
if not translation_available or not telugu_model_loaded:
|