vinay0123 commited on
Commit
7353b52
·
verified ·
1 Parent(s): 88920b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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: