Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,21 +64,21 @@ def ChatGPTBrain(Query):
|
|
| 64 |
sleep(1)
|
| 65 |
|
| 66 |
except:
|
| 67 |
-
|
| 68 |
-
|
| 69 |
|
| 70 |
try:
|
| 71 |
driver.find_element(by=By.XPATH,value="/html/body/div[1]/div/div/main/article/div/div/div/div/div/div/div[2]/div/div/div[2]/button/span").click()
|
| 72 |
|
| 73 |
except:
|
| 74 |
-
|
| 75 |
-
|
| 76 |
|
| 77 |
try:
|
| 78 |
Data = str(FileReader())
|
| 79 |
|
| 80 |
except:
|
| 81 |
-
|
| 82 |
|
| 83 |
while True:
|
| 84 |
|
|
@@ -104,7 +104,7 @@ def ChatGPTBrain(Query):
|
|
| 104 |
Answer = driver.find_element(by=By.XPATH,value=AnswerXpath).text
|
| 105 |
|
| 106 |
except:
|
| 107 |
-
|
| 108 |
|
| 109 |
NewData = int(Data) + 2
|
| 110 |
FileWriter(Data=str(NewData))
|
|
|
|
| 64 |
sleep(1)
|
| 65 |
|
| 66 |
except:
|
| 67 |
+
st.write("*The Input button or Input Section does not appear to be readily accessible or available within the current context or environment.*")
|
| 68 |
+
st.write("*Consider modifying the path for the 'Input' element, which is available on the website.*")
|
| 69 |
|
| 70 |
try:
|
| 71 |
driver.find_element(by=By.XPATH,value="/html/body/div[1]/div/div/main/article/div/div/div/div/div/div/div[2]/div/div/div[2]/button/span").click()
|
| 72 |
|
| 73 |
except:
|
| 74 |
+
st.write("*The Send.Keys() function or button does not appear to be readily accessible or available within the current context or environment.*")
|
| 75 |
+
st.write("*Consider modifying the path for the 'Send' button, which is available on the website.*")
|
| 76 |
|
| 77 |
try:
|
| 78 |
Data = str(FileReader())
|
| 79 |
|
| 80 |
except:
|
| 81 |
+
st.write("*Could Not Be able to access the file Where Chatnumber is saved for reference.")
|
| 82 |
|
| 83 |
while True:
|
| 84 |
|
|
|
|
| 104 |
Answer = driver.find_element(by=By.XPATH,value=AnswerXpath).text
|
| 105 |
|
| 106 |
except:
|
| 107 |
+
st.write("*The response text element cannot be located. Please ensure that you update its selector or locator.")
|
| 108 |
|
| 109 |
NewData = int(Data) + 2
|
| 110 |
FileWriter(Data=str(NewData))
|