Spaces:
Runtime error
Runtime error
Commit
·
ddabfc0
1
Parent(s):
5273c29
app.py
CHANGED
@@ -7,18 +7,15 @@ from dotenv import load_dotenv
|
|
7 |
load_dotenv(".env")
|
8 |
|
9 |
STABILITY_HOST = "grpc.stability.ai:443"
|
10 |
-
STABILITY_KEY = os.getenv("STABILITY_KEY")
|
11 |
|
12 |
-
# Connect to Stability API
|
13 |
-
context = Context(STABILITY_HOST, STABILITY_KEY)
|
14 |
-
|
15 |
-
# Test the connection
|
16 |
-
context.get_user_info()
|
17 |
-
print("Connection successfuly!")
|
18 |
|
19 |
def anim(f_promt, s_promt, stability_key):
|
20 |
# Connect to Stability API
|
21 |
context = Context(STABILITY_HOST, stability_key)
|
|
|
|
|
|
|
22 |
|
23 |
# Configure the animation
|
24 |
args = AnimationArgs()
|
|
|
7 |
load_dotenv(".env")
|
8 |
|
9 |
STABILITY_HOST = "grpc.stability.ai:443"
|
10 |
+
#STABILITY_KEY = os.getenv("STABILITY_KEY")
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
def anim(f_promt, s_promt, stability_key):
|
14 |
# Connect to Stability API
|
15 |
context = Context(STABILITY_HOST, stability_key)
|
16 |
+
# Test the connection
|
17 |
+
context.get_user_info()
|
18 |
+
print("Connection successfuly!")
|
19 |
|
20 |
# Configure the animation
|
21 |
args = AnimationArgs()
|