macrdel commited on
Commit
f948b17
1 Parent(s): f5172c9

update src.py

Browse files
Files changed (1) hide show
  1. app/src/src.py +0 -2
app/src/src.py CHANGED
@@ -1,6 +1,5 @@
1
  import pandas as pd
2
  import requests
3
- import time
4
  import urllib.parse as urlparse
5
 
6
 
@@ -46,7 +45,6 @@ def get_comments(api_key, video_id):
46
  def get_sentim(data, headers, url):
47
  """Get result of sentimental analysis"""
48
  res = requests.post(url, headers=headers, json=data)
49
- time.sleep(0.25)
50
  res = res.json()[0][0]
51
  return res['label'], res['score']
52
 
 
1
  import pandas as pd
2
  import requests
 
3
  import urllib.parse as urlparse
4
 
5
 
 
45
  def get_sentim(data, headers, url):
46
  """Get result of sentimental analysis"""
47
  res = requests.post(url, headers=headers, json=data)
 
48
  res = res.json()[0][0]
49
  return res['label'], res['score']
50