CognitiveScience commited on
Commit
cd558a1
1 Parent(s): 636ed91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -2,7 +2,8 @@ import gradio as gr
2
  from bs4 import BeautifulSoup
3
  import requests
4
  from python_actr import *
5
-
 
6
  def greet(link):
7
  HEADER = {"User-Agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'}
8
  #link = "https://youtu.be/vQUCSHUlN-k?si=FfIsODGjJDzIHOAS"
@@ -32,7 +33,7 @@ def greet(link):
32
  viewSoupMeta= soup
33
  '''
34
  #viewSoupMeta = API_Data #str(response).find("viewCount")
35
- celsci1=celsci()
36
  response3= celsci1.celscilist["dd"]['x']['followers'] #checkfame("dd")
37
 
38
  return response3 #result #soup.prettify()
 
2
  from bs4 import BeautifulSoup
3
  import requests
4
  from python_actr import *
5
+ class myCelSci(celsci):
6
+ pass
7
  def greet(link):
8
  HEADER = {"User-Agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'}
9
  #link = "https://youtu.be/vQUCSHUlN-k?si=FfIsODGjJDzIHOAS"
 
33
  viewSoupMeta= soup
34
  '''
35
  #viewSoupMeta = API_Data #str(response).find("viewCount")
36
+ celsci1=myCelSci()
37
  response3= celsci1.celscilist["dd"]['x']['followers'] #checkfame("dd")
38
 
39
  return response3 #result #soup.prettify()