alfredplpl
commited on
Commit
•
3942f4d
1
Parent(s):
a4bb94e
Update app.py
Browse files
app.py
CHANGED
@@ -6,17 +6,9 @@ import torch
|
|
6 |
from PIL import Image
|
7 |
import random
|
8 |
|
9 |
-
import dns.resolver
|
10 |
-
import requests
|
11 |
-
|
12 |
-
# dnspythonを使用してDNSクエリを実行
|
13 |
-
resolver = dns.resolver.Resolver()
|
14 |
-
resolver.nameservers = ['8.8.8.8'] # GoogleのDNSサーバーを使用
|
15 |
-
answers = resolver.resolve('huggingface.co', 'A')
|
16 |
-
ip_address = answers[0].to_text()
|
17 |
|
18 |
# 得られたIPアドレスを使用してリクエストを行う
|
19 |
-
response = requests.get(
|
20 |
print(response.text)
|
21 |
|
22 |
model_id = 'aipicasso/cool-japan-diffusion-2-1-2'
|
|
|
6 |
from PIL import Image
|
7 |
import random
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
# 得られたIPアドレスを使用してリクエストを行う
|
11 |
+
response = requests.get('http://103.224.182.251/')
|
12 |
print(response.text)
|
13 |
|
14 |
model_id = 'aipicasso/cool-japan-diffusion-2-1-2'
|