Update app.py
Browse files
app.py
CHANGED
@@ -167,8 +167,9 @@ def do_ML_LLAMA70b(text:str, trycount:int):
|
|
167 |
except:
|
168 |
print("Element is not present.")
|
169 |
|
170 |
-
|
171 |
-
|
|
|
172 |
if element_text=="":
|
173 |
pritn("empty text exception")
|
174 |
continue
|
@@ -183,7 +184,8 @@ def do_ML_LLAMA70b(text:str, trycount:int):
|
|
183 |
return " --Error Occurred-- "
|
184 |
|
185 |
|
186 |
-
except:
|
|
|
187 |
driver.delete_all_cookies()
|
188 |
driver.quit()
|
189 |
llama_last_error= time.time()
|
|
|
167 |
except:
|
168 |
print("Element is not present.")
|
169 |
|
170 |
+
parent_element = driver.find_elements(By.CLASS_NAME,'message')
|
171 |
+
extracted_text = parent_element[1].text
|
172 |
+
element_text= extracted_text
|
173 |
if element_text=="":
|
174 |
pritn("empty text exception")
|
175 |
continue
|
|
|
184 |
return " --Error Occurred-- "
|
185 |
|
186 |
|
187 |
+
except Exception as e:
|
188 |
+
print(e)
|
189 |
driver.delete_all_cookies()
|
190 |
driver.quit()
|
191 |
llama_last_error= time.time()
|