Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ 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-
|
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 |
+
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
|