Spaces:
Runtime error
Runtime error
Commit
·
0aacb32
1
Parent(s):
6d51927
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,8 +89,6 @@ def ccogsphere(name: str, rate: str, celsci: str):
|
|
| 89 |
cursor = db.cursor()
|
| 90 |
#try:
|
| 91 |
celsci2=celsci.split()
|
| 92 |
-
celsci2=celsci2[0] + "+" + celsci2[1]
|
| 93 |
-
celscix=celsci2[0] + celsci2[1]
|
| 94 |
|
| 95 |
if celsci=="Celscis List":
|
| 96 |
df = pd.DataFrame({
|
|
@@ -111,6 +109,8 @@ def ccogsphere(name: str, rate: str, celsci: str):
|
|
| 111 |
cursor.execute("INSERT INTO reviews(name, view, duration,x) VALUES(?,?,?,?)", [nam, " wrote message: " , mess, celscix2])
|
| 112 |
db.commit()
|
| 113 |
else:
|
|
|
|
|
|
|
| 114 |
celscix2=json.dumps(gcf(celscix))
|
| 115 |
#if celscix=={"message":"Cannot find information about Twitter Screen Name 'donald trump'"}:
|
| 116 |
# print ("no")
|
|
|
|
| 89 |
cursor = db.cursor()
|
| 90 |
#try:
|
| 91 |
celsci2=celsci.split()
|
|
|
|
|
|
|
| 92 |
|
| 93 |
if celsci=="Celscis List":
|
| 94 |
df = pd.DataFrame({
|
|
|
|
| 109 |
cursor.execute("INSERT INTO reviews(name, view, duration,x) VALUES(?,?,?,?)", [nam, " wrote message: " , mess, celscix2])
|
| 110 |
db.commit()
|
| 111 |
else:
|
| 112 |
+
celsci2=celsci2[0] + "+" + celsci2[1]
|
| 113 |
+
celscix=celsci2[0] + celsci2[1]
|
| 114 |
celscix2=json.dumps(gcf(celscix))
|
| 115 |
#if celscix=={"message":"Cannot find information about Twitter Screen Name 'donald trump'"}:
|
| 116 |
# print ("no")
|