multimodalart HF staff commited on
Commit
371fde6
·
verified ·
1 Parent(s): f635070

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -39,7 +39,9 @@ def get_prompts_from_image(image_id):
39
  url = f'https://civitai.com/images/{image_id}'
40
  response = requests.get(url)
41
  soup = BeautifulSoup(response.text, 'html.parser')
 
42
  content = soup.find_all(class_='mantine-Text-root text-sm mantine-1c2skr8')
 
43
  if(content):
44
  if(len(content) > 1):
45
  return content[0].text, content[1].text
 
39
  url = f'https://civitai.com/images/{image_id}'
40
  response = requests.get(url)
41
  soup = BeautifulSoup(response.text, 'html.parser')
42
+ print(soup)
43
  content = soup.find_all(class_='mantine-Text-root text-sm mantine-1c2skr8')
44
+ print(content)
45
  if(content):
46
  if(len(content) > 1):
47
  return content[0].text, content[1].text