Omnibus commited on
Commit
0b4ddd5
1 Parent(s): 0745a74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -11,8 +11,9 @@ def rev_im(image_url):
11
  html_out = """"""
12
  rev_img_searcher = ReverseImageSearcher()
13
  res = rev_img_searcher.search(image_url)
14
-
15
  for search_item in res:
 
16
  out_dict={
17
  'Title': f'{search_item.page_title}',
18
  'Site': f'{search_item.page_url}',
@@ -28,7 +29,7 @@ def rev_im(image_url):
28
  </div>"""
29
 
30
 
31
- return (gr.HTML(f'{html_out}'))
32
 
33
  def find_it(inp):
34
  out=""
 
11
  html_out = """"""
12
  rev_img_searcher = ReverseImageSearcher()
13
  res = rev_img_searcher.search(image_url)
14
+ count = 0
15
  for search_item in res:
16
+ count+=1
17
  out_dict={
18
  'Title': f'{search_item.page_title}',
19
  'Site': f'{search_item.page_url}',
 
29
  </div>"""
30
 
31
 
32
+ return (gr.HTML(f'<h1>Total Found: {count}</h1><br>{html_out}'))
33
 
34
  def find_it(inp):
35
  out=""