Update app.py
Browse files
app.py
CHANGED
@@ -147,7 +147,7 @@ def do_ML_LLAMA70b(text:str, trycount:int):
|
|
147 |
|
148 |
prev =""
|
149 |
|
150 |
-
time.sleep(
|
151 |
while True:
|
152 |
time.sleep(0.5)
|
153 |
currtime= time.time()
|
@@ -173,6 +173,8 @@ def do_ML_LLAMA70b(text:str, trycount:int):
|
|
173 |
|
174 |
element = driver.find_element(By.XPATH,'//div[@data-testid="bot" and contains(@class, "message bot")]')
|
175 |
element_text= element.text
|
|
|
|
|
176 |
|
177 |
driver.quit()
|
178 |
|
|
|
147 |
|
148 |
prev =""
|
149 |
|
150 |
+
time.sleep(2)
|
151 |
while True:
|
152 |
time.sleep(0.5)
|
153 |
currtime= time.time()
|
|
|
173 |
|
174 |
element = driver.find_element(By.XPATH,'//div[@data-testid="bot" and contains(@class, "message bot")]')
|
175 |
element_text= element.text
|
176 |
+
if element_text=="":
|
177 |
+
continue
|
178 |
|
179 |
driver.quit()
|
180 |
|