Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def check_nsfw(json_data, profile):
|
|
| 37 |
return True
|
| 38 |
|
| 39 |
def get_prompts_from_image(image_id):
|
| 40 |
-
url = 'https://civitai.com/images/
|
| 41 |
response = requests.get(url)
|
| 42 |
soup = BeautifulSoup(response.text, 'html.parser')
|
| 43 |
content = soup.find_all(class_='mantine-Code-root mantine-Code-block mantine-2v44jn')
|
|
|
|
| 37 |
return True
|
| 38 |
|
| 39 |
def get_prompts_from_image(image_id):
|
| 40 |
+
url = f'https://civitai.com/images/{image_id}'
|
| 41 |
response = requests.get(url)
|
| 42 |
soup = BeautifulSoup(response.text, 'html.parser')
|
| 43 |
content = soup.find_all(class_='mantine-Code-root mantine-Code-block mantine-2v44jn')
|