Sakil commited on
Commit
233b979
·
1 Parent(s): 965df62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,8 +7,8 @@ import itertools
7
  import collections
8
  from collections import Counter
9
  import numpy as np
10
- hashtag_phrase ="#datascience"
11
- recent_tweet_count_you_want =100
12
  def search_hashtag1(hashtag_phrase,recent_tweet_count_you_want):
13
  #hashtag_phrase=input("Enter hashtahg")
14
  consumer_key="30GAxNeTfZuPL5SfNhFBodmRF"
@@ -41,7 +41,7 @@ def search_hashtag1(hashtag_phrase,recent_tweet_count_you_want):
41
  iface = gr.Interface(
42
  search_hashtag1,inputs=["text","number"],
43
  outputs="dataframe",
44
- examples=[[hashtag_phrase,recent_tweet_count_you_want]],
45
  theme="seafoam",
46
  title='Sakil Tweetlib6 App',
47
  description="You can extract tweets based on Hashtag.e.g. Please enter #datascience. The app extracts tweets based on the hashtag and the number of tweet count you want.")
 
7
  import collections
8
  from collections import Counter
9
  import numpy as np
10
+ #hashtag_phrase ="#datascience"
11
+ #recent_tweet_count_you_want =100
12
  def search_hashtag1(hashtag_phrase,recent_tweet_count_you_want):
13
  #hashtag_phrase=input("Enter hashtahg")
14
  consumer_key="30GAxNeTfZuPL5SfNhFBodmRF"
 
41
  iface = gr.Interface(
42
  search_hashtag1,inputs=["text","number"],
43
  outputs="dataframe",
44
+ examples=[["#datascience",10],["#valentine's day",100],["#pushpa",200],["#budget",500],["#sharktankindia",300]],
45
  theme="seafoam",
46
  title='Sakil Tweetlib6 App',
47
  description="You can extract tweets based on Hashtag.e.g. Please enter #datascience. The app extracts tweets based on the hashtag and the number of tweet count you want.")