Spaces:
Runtime error
Runtime error
Commit
·
ac97475
1
Parent(s):
21dfe54
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import requests
|
|
4 |
from acogsphere import acf
|
5 |
from bcogsphere import bcf
|
6 |
from ecogsphere import ecf
|
|
|
7 |
|
8 |
import pandas as pd
|
9 |
import math
|
@@ -89,7 +90,11 @@ def ccogsphere(name: str, rate: str, celsci: str):
|
|
89 |
#try:
|
90 |
celsci2=celsci.split()
|
91 |
celsci2=celsci2[0] + "+" + celsci2[1]
|
92 |
-
|
|
|
|
|
|
|
|
|
93 |
if celsci=="Celscis List":
|
94 |
df = pd.DataFrame({
|
95 |
"Name" : ["Video 1", "Video 2", "Video 3", "Video 4", "Video 5"],
|
|
|
4 |
from acogsphere import acf
|
5 |
from bcogsphere import bcf
|
6 |
from ecogsphere import ecf
|
7 |
+
from gcogsphere import gcf
|
8 |
|
9 |
import pandas as pd
|
10 |
import math
|
|
|
90 |
#try:
|
91 |
celsci2=celsci.split()
|
92 |
celsci2=celsci2[0] + "+" + celsci2[1]
|
93 |
+
celscix=celsci2[0] + celsci2[1]
|
94 |
+
celscix2=gcf(celscix)
|
95 |
+
if celscix={"message":"Cannot find information about Twitter Screen Name 'donald trump'"}:
|
96 |
+
print ("no")
|
97 |
+
|
98 |
if celsci=="Celscis List":
|
99 |
df = pd.DataFrame({
|
100 |
"Name" : ["Video 1", "Video 2", "Video 3", "Video 4", "Video 5"],
|