Frog215 commited on
Commit
e5dcce2
·
verified ·
1 Parent(s): a6e113d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -90,7 +90,7 @@ def extract_tos_content(company_name: str) -> Dict:
90
  return tos_info
91
 
92
  try:
93
- # Get the link from the search results
94
  tos_link = tos_info["tos_link"]
95
 
96
  print(f"Accessing TOS link: {tos_link}")
@@ -106,7 +106,7 @@ def extract_tos_content(company_name: str) -> Dict:
106
 
107
  print(f"Accessing raw content URL: {raw_url}")
108
 
109
- # Request the raw content
110
  response = requests.get(raw_url)
111
  response.raise_for_status()
112
 
@@ -114,7 +114,7 @@ def extract_tos_content(company_name: str) -> Dict:
114
  "company_name": tos_info["company_name"],
115
  "tos_link": tos_link,
116
  "raw_url": raw_url,
117
- "content": response.text, # Full raw content
118
  "content_type": "markdown" if raw_url.endswith(".md") else "text"
119
  }
120
 
 
90
  return tos_info
91
 
92
  try:
93
+ # link od zgoraj
94
  tos_link = tos_info["tos_link"]
95
 
96
  print(f"Accessing TOS link: {tos_link}")
 
106
 
107
  print(f"Accessing raw content URL: {raw_url}")
108
 
109
+ # request za raw data iz GItlabaa
110
  response = requests.get(raw_url)
111
  response.raise_for_status()
112
 
 
114
  "company_name": tos_info["company_name"],
115
  "tos_link": tos_link,
116
  "raw_url": raw_url,
117
+ "content": response.text, # cel raw data fajl
118
  "content_type": "markdown" if raw_url.endswith(".md") else "text"
119
  }
120