Spaces:
Runtime error
Runtime error
acecalisto3
commited on
Commit
•
304a527
1
Parent(s):
7b31f93
Update app.py
Browse files
app.py
CHANGED
@@ -282,7 +282,8 @@ with gr.Blocks() as demo:
|
|
282 |
async def update_feed_content():
|
283 |
return generate_rss_feed()
|
284 |
|
285 |
-
|
|
|
286 |
feed_updater.tick(fn=update_feed_content, outputs=feed_content)
|
287 |
|
288 |
if __name__ == "__main__":
|
|
|
282 |
async def update_feed_content():
|
283 |
return generate_rss_feed()
|
284 |
|
285 |
+
# with the corrected implementation:
|
286 |
+
feed_updater = gr.Timer(interval=300) # Set interval here directly on Timer
|
287 |
feed_updater.tick(fn=update_feed_content, outputs=feed_content)
|
288 |
|
289 |
if __name__ == "__main__":
|