fix : nft_upload_test updated #32

pull/79/head
sepandhaghighi 2021-12-14 18:58:27 +03:30
rodzic 7a325d6da7
commit 140ef8ace1
1 zmienionych plików z 1 dodań i 7 usunięć

Wyświetl plik

@ -6,13 +6,7 @@
>>> import time
>>> from samila import GenerativeImage, Projection
>>> from samila.params import VALID_COLORS
>>> def f1(x,y):
... result = random.uniform(-1,1) * x**2 - math.sin(y**2) + abs(y-x)
... return result
>>> def f2(x,y):
... result = random.uniform(-1,1) * y**3 - math.cos(x**2) + 2*x
... return result
>>> g = GenerativeImage(f1,f2)
>>> g = GenerativeImage()
>>> g.generate()
>>> g.plot()
>>> NFT_STORAGE_API_KEY = os.environ["NFT_STORAGE_API_KEY"]