Update app.py
Browse files
app.py
CHANGED
|
@@ -131,17 +131,8 @@ def split_and_search(text:str):
|
|
| 131 |
all_data=""
|
| 132 |
plants=text.split(",")
|
| 133 |
for each in plants:
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
try:
|
| 137 |
-
plant=plant.split('```')[1].replace('json','')
|
| 138 |
-
except Exception as e:
|
| 139 |
-
plant=plant.replace('```','').replace('json','')
|
| 140 |
-
if "**Sponsor**" in plant:
|
| 141 |
-
all_data+=plant.split("**Sponsor**")[0].replace('json','')+",\n\n"
|
| 142 |
-
else:
|
| 143 |
-
all_data+=plant.split("**Sponsor**")[0].replace('json','')+",\n\n"
|
| 144 |
-
time.sleep(2)
|
| 145 |
return all_data
|
| 146 |
|
| 147 |
#use it here :
|
|
|
|
| 131 |
all_data=""
|
| 132 |
plants=text.split(",")
|
| 133 |
for each in plants:
|
| 134 |
+
all_data+=search_full_plant_information(each.strip())
|
| 135 |
+
time.sleep(1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
return all_data
|
| 137 |
|
| 138 |
#use it here :
|