Spaces:
Running
Running
yizhangliu
commited on
Commit
•
a642cea
1
Parent(s):
85c386a
Update app.py
Browse files
app.py
CHANGED
@@ -100,8 +100,11 @@ if do_dreamlike_photoreal:
|
|
100 |
tab_titles.append("Dreamlike_2.0")
|
101 |
thanks_info += "[<a style='display:inline-block' href='https://huggingface.co/dreamlike-art/dreamlike-photoreal-2.0' _blank><font style='color:blue;weight:bold;'>dreamlike-photoreal-2.0</font></a>]"
|
102 |
|
103 |
-
|
104 |
-
|
|
|
|
|
|
|
105 |
try:
|
106 |
tab_title = space_ids[space_id]
|
107 |
if (tab_title == 'Dalle mini'):
|
@@ -113,8 +116,9 @@ for space_id in space_ids.keys():
|
|
113 |
tab_titles.append(tab_title)
|
114 |
tab_actions.append(tab_content)
|
115 |
thanks_info += f"[<a style='display:inline-block' href='https://huggingface.co/{space_id}' _blank><font style='color:blue;weight:bold;'>{tab_title}</font></a>]"
|
|
|
116 |
except Exception as e:
|
117 |
-
logger.info(f"load_fail__{space_id}
|
118 |
|
119 |
start_work = """async() => {
|
120 |
function isMobile() {
|
|
|
100 |
tab_titles.append("Dreamlike_2.0")
|
101 |
thanks_info += "[<a style='display:inline-block' href='https://huggingface.co/dreamlike-art/dreamlike-photoreal-2.0' _blank><font style='color:blue;weight:bold;'>dreamlike-photoreal-2.0</font></a>]"
|
102 |
|
103 |
+
space_ids_keys = space_ids.keys()
|
104 |
+
logger.info(f"load_space__000__{space_ids_keys}")
|
105 |
+
for space_id in space_ids_keys:
|
106 |
+
logger.info(f"load_space__{space_id}__{space_ids[space_id]}")
|
107 |
+
tab_title = ''
|
108 |
try:
|
109 |
tab_title = space_ids[space_id]
|
110 |
if (tab_title == 'Dalle mini'):
|
|
|
116 |
tab_titles.append(tab_title)
|
117 |
tab_actions.append(tab_content)
|
118 |
thanks_info += f"[<a style='display:inline-block' href='https://huggingface.co/{space_id}' _blank><font style='color:blue;weight:bold;'>{tab_title}</font></a>]"
|
119 |
+
logger.info(f"load_sucessful__{space_id}__{tab_title}")
|
120 |
except Exception as e:
|
121 |
+
logger.info(f"load_fail__{space_id}__{tab_title}____{e}")
|
122 |
|
123 |
start_work = """async() => {
|
124 |
function isMobile() {
|