rishi1985 commited on
Commit
47d86ee
1 Parent(s): 5ceb7b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -147,7 +147,7 @@ def do_ML_LLAMA70b(text:str, trycount:int):
147
 
148
  prev =""
149
 
150
- time.sleep(0.6)
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