Spaces:
Running
Running
Update app.py
Browse files
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
|