Krittaprot commited on
Commit
f2c6a14
β€’
1 Parent(s): 9d422fc

Interface update

Browse files

Update the interface and add more notes.

Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -315,16 +315,16 @@ interface = gr.Interface(
315
  inputs=[
316
  gr.Textbox(label="YouTube Video Link"),
317
  gr.Number(label="Maximum Comments", value=100),
318
- gr.Textbox(label="Excluded Words (comma-separated)")
319
  ],
320
  outputs=[
321
- gr.Image(label="Word Cloud"),
322
- gr.Textbox(label="Top 3 Positive Comments"),
323
- gr.Textbox(label="Top 3 Negative Comments"),
324
- gr.Image(label="Sentiment Analysis Chart")
325
  ],
326
- title="YouTube Comments Analyzer",
327
- description="Enter a YouTube link to generate a word cloud and sentiment analysis of the comments."
328
  )
329
 
330
  # Run the interface
 
315
  inputs=[
316
  gr.Textbox(label="YouTube Video Link"),
317
  gr.Number(label="Maximum Comments", value=100),
318
+ gr.Textbox(label="Words to exclude from cloud (comma-separated)")
319
  ],
320
  outputs=[
321
+ gr.Image(label="Word Cloud ☁️"),
322
+ gr.Textbox(label="Top 3 Positive Comments πŸ‘πŸ»"),
323
+ gr.Textbox(label="Top 3 Negative Comments πŸ‘ŽπŸ»"),
324
+ gr.Image(label="Sentiment Analysis Chart πŸ“Š")
325
  ],
326
+ title="YouTube Comments Analyzer πŸ“ˆ",
327
+ description="Enter a YouTube link to generate a word cloud, top positive and negative comments, and sentiment analysis of the comments. \n\n Note: The app is both desktop πŸ–₯️/mobile πŸ“± compatible. Depending on the amount of comments found, it can take up to 1 - 2 mins to process. Have fun πŸ˜€!"
328
  )
329
 
330
  # Run the interface