Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,7 @@ def get_prompts_from_image(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')
|
|
|
44 |
if(content):
|
45 |
if(len(content) > 1):
|
46 |
return content[0].text, content[1].text
|
|
|
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')
|
44 |
+
print(content)
|
45 |
if(content):
|
46 |
if(len(content) > 1):
|
47 |
return content[0].text, content[1].text
|