Commit
•
b7f76d9
1
Parent(s):
010c9e3
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ from slugify import slugify
|
|
10 |
import requests
|
11 |
import torch
|
12 |
import zipfile
|
|
|
13 |
from diffusers import StableDiffusionPipeline
|
14 |
|
15 |
css = '''
|
@@ -180,7 +181,7 @@ def push(model_name, where_to_upload, hf_token):
|
|
180 |
title_instance_prompt_string = ''
|
181 |
previous_instance_prompt = instance_prompt
|
182 |
image_string = f'''{title_instance_prompt_string}
|
183 |
-
{image_string}![{instance_prompt} {i}](https://huggingface.co/{model_id}/resolve/main/concept_images/{image})'''
|
184 |
readme_text = f'''---
|
185 |
license: creativeml-openrail-m
|
186 |
tags:
|
|
|
10 |
import requests
|
11 |
import torch
|
12 |
import zipfile
|
13 |
+
import urllib.parse
|
14 |
from diffusers import StableDiffusionPipeline
|
15 |
|
16 |
css = '''
|
|
|
181 |
title_instance_prompt_string = ''
|
182 |
previous_instance_prompt = instance_prompt
|
183 |
image_string = f'''{title_instance_prompt_string}
|
184 |
+
{image_string}![{instance_prompt} {i}](https://huggingface.co/{model_id}/resolve/main/concept_images/{urllib.parse.quote(image)})'''
|
185 |
readme_text = f'''---
|
186 |
license: creativeml-openrail-m
|
187 |
tags:
|