Spaces:
Running
Running
yizhangliu
commited on
Commit
•
85c386a
1
Parent(s):
4b9f579
Update app.py
Browse files
app.py
CHANGED
@@ -103,14 +103,15 @@ if do_dreamlike_photoreal:
|
|
103 |
for space_id in space_ids.keys():
|
104 |
print(space_id, space_ids[space_id])
|
105 |
try:
|
106 |
-
tab_title = space_ids[space_id]
|
107 |
-
tab_titles.append(tab_title)
|
108 |
if (tab_title == 'Dalle mini'):
|
109 |
tab_content = gr.Blocks(elem_id='dalle_mini')
|
|
|
110 |
tab_actions.append(tab_content)
|
111 |
else:
|
112 |
tab_content = gr.Interface.load(space_id)
|
113 |
-
|
|
|
114 |
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>]"
|
115 |
except Exception as e:
|
116 |
logger.info(f"load_fail__{space_id}_{e}")
|
|
|
103 |
for space_id in space_ids.keys():
|
104 |
print(space_id, space_ids[space_id])
|
105 |
try:
|
106 |
+
tab_title = space_ids[space_id]
|
|
|
107 |
if (tab_title == 'Dalle mini'):
|
108 |
tab_content = gr.Blocks(elem_id='dalle_mini')
|
109 |
+
tab_titles.append(tab_title)
|
110 |
tab_actions.append(tab_content)
|
111 |
else:
|
112 |
tab_content = gr.Interface.load(space_id)
|
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}_{e}")
|