rishi1985 commited on
Commit
8dc0250
1 Parent(s): 226829c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -115,7 +115,7 @@ def do_ML_LLAMA70b(text:str, trycount:int):
115
  options.add_argument("start-maximized")
116
  service = Service(executable_path=chrome_driver_path)
117
  driver = webdriver.Chrome(options= options,service=service)
118
- driver.get("https://ysharma-explore-llamav2-with-tgi.hf.space/")
119
  try:
120
 
121
  while True:
@@ -125,12 +125,12 @@ def do_ML_LLAMA70b(text:str, trycount:int):
125
  driver.quit()
126
  return "Requested Could not be proceed"
127
  try:
128
- span_element = driver.find_element(By.CLASS_NAME, 'svelte-s1r2yt')
129
- span_element.click()
130
- input_element = driver.find_elements(By.CSS_SELECTOR, 'input[data-testid="number-input"]')
131
- new_value = "2000"
132
- input_element[1].clear()
133
- input_element[1].send_keys(new_value)
134
  xpath_expression = '//textarea[@data-testid="textbox"]'
135
  textarea_element = driver.find_element(By.XPATH, xpath_expression)
136
  for line in text.split('\n'):
 
115
  options.add_argument("start-maximized")
116
  service = Service(executable_path=chrome_driver_path)
117
  driver = webdriver.Chrome(options= options,service=service)
118
+ driver.get("https://huggingface-projects-llama-2-7b-chat.hf.space")
119
  try:
120
 
121
  while True:
 
125
  driver.quit()
126
  return "Requested Could not be proceed"
127
  try:
128
+ # span_element = driver.find_element(By.CLASS_NAME, 'svelte-s1r2yt')
129
+ # span_element.click()
130
+ # input_element = driver.find_elements(By.CSS_SELECTOR, 'input[data-testid="number-input"]')
131
+ # new_value = "2000"
132
+ # input_element[1].clear()
133
+ # input_element[1].send_keys(new_value)
134
  xpath_expression = '//textarea[@data-testid="textbox"]'
135
  textarea_element = driver.find_element(By.XPATH, xpath_expression)
136
  for line in text.split('\n'):