Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -84,7 +84,7 @@ def getstuff(openapikey):
|
|
| 84 |
for i in range(len(mainlistofanswers)):
|
| 85 |
each=mainlistofanswers[i]
|
| 86 |
each=each.replace("The top technologies mentioned are ","").replace("The technologies mentioned are ","")
|
| 87 |
-
each=each.replace(":","").replace(" and ","
|
| 88 |
for item in each.split(","):
|
| 89 |
newlistoftech.append(item.strip())
|
| 90 |
newlistofcompanies.append(i)
|
|
@@ -175,7 +175,7 @@ def getstuff(openapikey):
|
|
| 175 |
|
| 176 |
with fs.open('trends_chrome_extension_bucket/lastradartext.txt', 'wb') as file:
|
| 177 |
for line in textlist:
|
| 178 |
-
file.write(f"{line}\n"
|
| 179 |
|
| 180 |
print('Came here 8')
|
| 181 |
|
|
|
|
| 84 |
for i in range(len(mainlistofanswers)):
|
| 85 |
each=mainlistofanswers[i]
|
| 86 |
each=each.replace("The top technologies mentioned are ","").replace("The technologies mentioned are ","")
|
| 87 |
+
each=each.replace(":","").replace(" and ",",").replace("and ",",").replace(" and",",").replace(" the "," ").replace("the "," ").replace(" the"," ").strip()
|
| 88 |
for item in each.split(","):
|
| 89 |
newlistoftech.append(item.strip())
|
| 90 |
newlistofcompanies.append(i)
|
|
|
|
| 175 |
|
| 176 |
with fs.open('trends_chrome_extension_bucket/lastradartext.txt', 'wb') as file:
|
| 177 |
for line in textlist:
|
| 178 |
+
file.write(f"{line}\n")
|
| 179 |
|
| 180 |
print('Came here 8')
|
| 181 |
|