macrdel commited on
Commit
023f2e5
1 Parent(s): c45f956

Update src.py

Browse files
Files changed (2) hide show
  1. README.md +2 -2
  2. app/src/src.py +1 -1
README.md CHANGED
@@ -7,9 +7,9 @@ sdk: docker
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
11
 
12
- # Sentiment and summarize russian YouTube-video comments
13
 
14
  This is web-server on [![FastAPI](https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png)](https://fastapi.tiangolo.com/) for sentiment analysis and summarization of russian YouTube comments
15
 
 
7
  pinned: false
8
  ---
9
 
10
+ Check out the configuration reference at <https://huggingface.co/docs/hub/spaces-config-reference>
11
 
12
+ ## Sentiment and summarize russian YouTube-video comments
13
 
14
  This is web-server on [![FastAPI](https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png)](https://fastapi.tiangolo.com/) for sentiment analysis and summarization of russian YouTube comments
15
 
app/src/src.py CHANGED
@@ -76,6 +76,6 @@ def pipeline_summarize(data, headers, url, length=2000, max_length=35):
76
  }
77
  }
78
  res = requests.post(url, headers=headers, json=payload)
79
- result_text.append(res.json()[0]["generated_text"])
80
 
81
  return " ".join(result_text)
 
76
  }
77
  }
78
  res = requests.post(url, headers=headers, json=payload)
79
+ result_text.append(res.json()[0]["summary_text"])
80
 
81
  return " ".join(result_text)