Update app.py
Browse files
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)
|