Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -385,7 +385,9 @@ with gr.Blocks(fill_width=True) as demo:
|
|
| 385 |
m_js = """ (x) =>
|
| 386 |
{
|
| 387 |
reloadTwitterWidgets();
|
| 388 |
-
|
|
|
|
|
|
|
| 389 |
}
|
| 390 |
|
| 391 |
"""
|
|
|
|
| 385 |
m_js = """ (x) =>
|
| 386 |
{
|
| 387 |
reloadTwitterWidgets();
|
| 388 |
+
const tweetContainer = document.getElementById("tweet-container");
|
| 389 |
+
tweetContainer.innerHTML = "";
|
| 390 |
+
twttr.widgets.createTweet(x,tweetContainer,{theme: 'dark'});
|
| 391 |
}
|
| 392 |
|
| 393 |
"""
|