Eitan Lifshits
commited on
Commit
·
2260c65
1
Parent(s):
ec461b0
fix output format
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ summarizer = pipeline('summarization', model='Eitanli/resume_label_summary_model
|
|
7 |
|
8 |
def predict(text):
|
9 |
summary = summarizer(text, max_length=10, min_length=2)
|
10 |
-
return
|
11 |
|
12 |
|
13 |
iface = gr.Interface(
|
|
|
7 |
|
8 |
def predict(text):
|
9 |
summary = summarizer(text, max_length=10, min_length=2)
|
10 |
+
return summary[0]['summary_text']
|
11 |
|
12 |
|
13 |
iface = gr.Interface(
|