tensorgirl commited on
Commit
57253e0
1 Parent(s): 76e8dc6

Update calling_script.py

Browse files
Files changed (1) hide show
  1. calling_script.py +8 -7
calling_script.py CHANGED
@@ -9,6 +9,7 @@ class Item(BaseModel):
9
  Descriptor: str = "Certificate under Reg. 74 (5) of SEBI (DP) Regulations 2018"
10
  caption: str = "Compliances-Certificate under Reg. 74 (5) of SEBI (DP) Regulations 2018"
11
  newsdate: str = "2024-04-08T13:05:27"
 
12
 
13
  url = "http://jwttoken.cmots.com/cotovia/api/BSEAnnouncement"
14
 
@@ -21,13 +22,13 @@ data = json.loads(output.text)
21
  sample = data['data'][0]
22
 
23
  input_data = Item(
24
- FileURL = sample['FileURL'],
25
- memo = sample['memo'],
26
- TypeofAnnouncement = sample['TypeofAnnouncement'],
27
- Descriptor = sample['Descriptor'],
28
- caption = sample['caption'],
29
- newsdate = sample['newsdate'],
30
- symbol = sample['symbol']
31
  )
32
 
33
  url = "https://tensorgirl-fintech.hf.space/Summarize/"
 
9
  Descriptor: str = "Certificate under Reg. 74 (5) of SEBI (DP) Regulations 2018"
10
  caption: str = "Compliances-Certificate under Reg. 74 (5) of SEBI (DP) Regulations 2018"
11
  newsdate: str = "2024-04-08T13:05:27"
12
+ symbol: str = "null"
13
 
14
  url = "http://jwttoken.cmots.com/cotovia/api/BSEAnnouncement"
15
 
 
22
  sample = data['data'][0]
23
 
24
  input_data = Item(
25
+ FileURL = sample['FileURL'] or "",
26
+ memo = sample['memo'] or "",
27
+ TypeofAnnouncement = sample['TypeofAnnouncement'] or "",
28
+ Descriptor = sample['Descriptor'] or "",
29
+ caption = sample['caption'] or "",
30
+ newsdate = sample['newsdate'] or "",
31
+ symbol = sample['symbol'] or ""
32
  )
33
 
34
  url = "https://tensorgirl-fintech.hf.space/Summarize/"