Spaces:
Runtime error
Runtime error
shawarmabytes
commited on
Commit
·
c5a64ee
1
Parent(s):
72130d1
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,9 @@ def tester(text):
|
|
20 |
|
21 |
|
22 |
if (results[0]['label']=="joy"):
|
23 |
-
|
|
|
|
|
24 |
|
25 |
elif (results[0]['label']=="anger"):
|
26 |
components.html("""<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ?&autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>""",width=560,height=325)
|
|
|
20 |
|
21 |
|
22 |
if (results[0]['label']=="joy"):
|
23 |
+
a = 1
|
24 |
+
if a == 1:
|
25 |
+
components.html("""<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ?&autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>""",width=560,height=325)
|
26 |
|
27 |
elif (results[0]['label']=="anger"):
|
28 |
components.html("""<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ?&autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>""",width=560,height=325)
|