Commit
•
2c7d2b1
1
Parent(s):
d9ae386
Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,9 @@ import random
|
|
9 |
import requests
|
10 |
|
11 |
# 得られたIPアドレスを使用してリクエストを行う
|
12 |
-
response = requests.get('https://huggingface.co/')
|
13 |
-
print(response.text)
|
14 |
-
|
15 |
model_id = 'aipicasso/cool-japan-diffusion-2-1-2'
|
16 |
|
17 |
scheduler = EulerAncestralDiscreteScheduler(prediction_type="v_prediction") # .from_pretrained(model_id) # , subfolder="scheduler"
|
@@ -290,5 +290,5 @@ with gr.Blocks(css=css) as demo:
|
|
290 |
prompt.submit(inference, inputs=inputs, outputs=outputs)
|
291 |
generate.click(inference, inputs=inputs, outputs=outputs,api_name="generate")
|
292 |
|
293 |
-
demo.queue(
|
294 |
demo.launch()
|
|
|
9 |
import requests
|
10 |
|
11 |
# 得られたIPアドレスを使用してリクエストを行う
|
12 |
+
# response = requests.get('https://huggingface.co/')
|
13 |
+
# print(response.text)
|
14 |
+
|
15 |
model_id = 'aipicasso/cool-japan-diffusion-2-1-2'
|
16 |
|
17 |
scheduler = EulerAncestralDiscreteScheduler(prediction_type="v_prediction") # .from_pretrained(model_id) # , subfolder="scheduler"
|
|
|
290 |
prompt.submit(inference, inputs=inputs, outputs=outputs)
|
291 |
generate.click(inference, inputs=inputs, outputs=outputs,api_name="generate")
|
292 |
|
293 |
+
demo.queue()
|
294 |
demo.launch()
|