Eitan Lifshits
commited on
Commit
·
ec461b0
1
Parent(s):
46d7acf
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 {'summary': summary}
|
11 |
|
12 |
|
13 |
iface = gr.Interface(
|
|
|
7 |
|
8 |
def predict(text):
|
9 |
summary = summarizer(text, max_length=10, min_length=2)
|
10 |
+
return {'summary': summary[0]['summary_text']}
|
11 |
|
12 |
|
13 |
iface = gr.Interface(
|