Ozziey commited on
Commit
1dbe736
·
1 Parent(s): 17a6d9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -3,7 +3,6 @@ import pandas as pd
3
  import numpy as np
4
  from transformers import pipeline
5
 
6
- @app.route('/analyze', methods=['POST'])
7
  def analyze(poem):
8
  classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
9
  return classifier(poem)
 
3
  import numpy as np
4
  from transformers import pipeline
5
 
 
6
  def analyze(poem):
7
  classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
8
  return classifier(poem)