pushpdeep commited on
Commit
2ba7cb6
1 Parent(s): eae2d0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -48,14 +48,16 @@ def main():
48
  # Slice data on year
49
  frame = data
50
  # Get individual results
 
51
  for id_ in I.flatten().tolist():
 
52
  if id_ in set(frame.rid):
53
  f = frame[(frame.rid == id_)]
54
  else:
55
  continue
56
-
57
  st.write(
58
  f"""
 
59
  **Language**: {f.iloc[0].language}
60
  **Article**: {f.iloc[0].abstract} https://pib.gov.in/PressReleasePage.aspx?PRID={f.iloc[0].rid}
61
  """
 
48
  # Slice data on year
49
  frame = data
50
  # Get individual results
51
+ i = 0
52
  for id_ in I.flatten().tolist():
53
+ i+=1
54
  if id_ in set(frame.rid):
55
  f = frame[(frame.rid == id_)]
56
  else:
57
  continue
 
58
  st.write(
59
  f"""
60
+ **Rank**: {i}
61
  **Language**: {f.iloc[0].language}
62
  **Article**: {f.iloc[0].abstract} https://pib.gov.in/PressReleasePage.aspx?PRID={f.iloc[0].rid}
63
  """