Spaces:
Running
Running
Commit
•
83693e0
1
Parent(s):
711594a
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,9 @@ def check_nsfw(json_data, profile):
|
|
38 |
def get_prompts_from_image(image_id):
|
39 |
print("image_id: ", image_id)
|
40 |
url = f'https://civitai.com/api/trpc/image.getGenerationData?input={{"json":{{"id":{image_id}}}}}'
|
|
|
41 |
response = requests.get(url)
|
|
|
42 |
prompt = ""
|
43 |
negative_prompt = ""
|
44 |
if response.status_code == 200:
|
|
|
38 |
def get_prompts_from_image(image_id):
|
39 |
print("image_id: ", image_id)
|
40 |
url = f'https://civitai.com/api/trpc/image.getGenerationData?input={{"json":{{"id":{image_id}}}}}'
|
41 |
+
print(url)
|
42 |
response = requests.get(url)
|
43 |
+
print(response)
|
44 |
prompt = ""
|
45 |
negative_prompt = ""
|
46 |
if response.status_code == 200:
|