Spaces:
Runtime error
Runtime error
Commit
·
4294a8a
1
Parent(s):
bd813f2
Update app.py
Browse files
app.py
CHANGED
@@ -89,8 +89,12 @@ def ccogsphere(name: str, rate: str, celsci: str):
|
|
89 |
#try:
|
90 |
celsci1=celsci.split()
|
91 |
celsci2=celsci1[0] + "+" + celsci1[1]
|
92 |
-
if
|
93 |
-
|
|
|
|
|
|
|
|
|
94 |
db.commit()
|
95 |
else:
|
96 |
celsci2=ecf(celsci2)
|
|
|
89 |
#try:
|
90 |
celsci1=celsci.split()
|
91 |
celsci2=celsci1[0] + "+" + celsci1[1]
|
92 |
+
if celsci=="Celscis List":
|
93 |
+
df = pd.DataFrame({
|
94 |
+
"Videos" : ["Video 1", "Video 2", "Video 3", "Video 4", "Video 5"],
|
95 |
+
"Views" : [500, 2000, 540, 300, 200],
|
96 |
+
"Duration" : [30, 20, 70, 35, 22]})
|
97 |
+
cursor.execute("INSERT INTO reviews(name, view, duration) VALUES(?,?,?)", [name, "0" , "message")
|
98 |
db.commit()
|
99 |
else:
|
100 |
celsci2=ecf(celsci2)
|