Commit ·
2c1b305
1
Parent(s): 25828d3
Update app.py
Browse files
app.py
CHANGED
|
@@ -431,10 +431,11 @@ with gr.Blocks(title="Twitter Temporal Insights | Data Science Dojo", css = css)
|
|
| 431 |
with gr.Row():
|
| 432 |
out6 = gr.Plot()
|
| 433 |
gr.Examples(
|
| 434 |
-
examples=[["2021-01-01_2022-12-
|
| 435 |
fn = file_viz,
|
| 436 |
inputs = filein,
|
| 437 |
-
outputs=[out0,out2,out3,out4,out5,out6,out7,out8,out9,out10,out11,out12,out13,out14,out15,out16,out17,out18,out19,out20,out21,out22,out23,out24,out25,out26]
|
|
|
|
| 438 |
)
|
| 439 |
filein.change(fn=file_viz,inputs = filein, outputs=[out0,out2,out3,out4,out5,out6,out7,out8,out9,out10,out11,out12,out13,out14,out15,out16,out17,out18,out19,out20,out21,out22,out23,out24,out25,out26])
|
| 440 |
submit_btn.click(fn=scrape_tweets, inputs=[text,username,since,until,retweets,replies,count], outputs=[out0,out2,out3,out4,out5,out6,out7,out8,out9,out10,out11,out12,out13,out14,out15,out16,out17,out18,out19,out20,out21,out22,out23,out24,out25,out26])
|
|
|
|
| 431 |
with gr.Row():
|
| 432 |
out6 = gr.Plot()
|
| 433 |
gr.Examples(
|
| 434 |
+
examples=[["2021-01-01_2022-12-31_DataScienceDojoq7id0ln7.csv"]],
|
| 435 |
fn = file_viz,
|
| 436 |
inputs = filein,
|
| 437 |
+
outputs=[out0,out2,out3,out4,out5,out6,out7,out8,out9,out10,out11,out12,out13,out14,out15,out16,out17,out18,out19,out20,out21,out22,out23,out24,out25,out26],
|
| 438 |
+
cache_examples = True
|
| 439 |
)
|
| 440 |
filein.change(fn=file_viz,inputs = filein, outputs=[out0,out2,out3,out4,out5,out6,out7,out8,out9,out10,out11,out12,out13,out14,out15,out16,out17,out18,out19,out20,out21,out22,out23,out24,out25,out26])
|
| 441 |
submit_btn.click(fn=scrape_tweets, inputs=[text,username,since,until,retweets,replies,count], outputs=[out0,out2,out3,out4,out5,out6,out7,out8,out9,out10,out11,out12,out13,out14,out15,out16,out17,out18,out19,out20,out21,out22,out23,out24,out25,out26])
|