Spaces:
Running
Running
AntaresGuo
commited on
Update interface_modules/X2Painting/server_config.py
Browse files
interface_modules/X2Painting/server_config.py
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
send_data = {}
|
4 |
send_data["task_type"] = "gen_WordArt"
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
login_url = os.getenv("HF_AUTH_ADDR")
|
4 |
+
login_data = {"username": os.getenv("HF_USERNAME"), "password": os.getenv("HF_PASSWORD")}
|
5 |
+
|
6 |
+
post_addr = os.getenv("HF_GEN_ADDR")
|
7 |
|
8 |
send_data = {}
|
9 |
send_data["task_type"] = "gen_WordArt"
|