Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from asyncio import constants
|
2 |
import gradio as gr
|
3 |
import re
|
@@ -5,9 +27,6 @@ import re
|
|
5 |
demo = gr.Blocks()
|
6 |
|
7 |
with demo:
|
8 |
-
ds_iface = gr.Interface.load("spaces/artificialguybr/DREAMSHAPER-XL-FREE-DEMO")
|
9 |
-
es_iface = gr.Interface.load("spaces/akhaliq/Real-ESRGAN")
|
10 |
-
|
11 |
print("Interfaces Loaded:", ds_iface, es_iface) # Check if interfaces are loaded correctly
|
12 |
|
13 |
def desc_to_image(desc):
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
# Replace 'your_space' with the actual names of your Hugging Face spaces
|
4 |
+
ds_space = "artificialguybr/DREAMSHAPER-XL-FREE-DEMO"
|
5 |
+
es_space = "akhaliq/Real-ESRGAN"
|
6 |
+
|
7 |
+
try:
|
8 |
+
ds_iface = gr.Interface.load(ds_space)
|
9 |
+
print("Loaded Dreamshaper Interface:", ds_iface)
|
10 |
+
except Exception as e:
|
11 |
+
print("Failed to load Dreamshaper Interface:", str(e))
|
12 |
+
|
13 |
+
try:
|
14 |
+
es_iface = gr.Interface.load(es_space)
|
15 |
+
print("Loaded ESRGAN Interface:", es_iface)
|
16 |
+
except Exception as e:
|
17 |
+
print("Failed to load ESRGAN Interface:", str(e))
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
|
23 |
from asyncio import constants
|
24 |
import gradio as gr
|
25 |
import re
|
|
|
27 |
demo = gr.Blocks()
|
28 |
|
29 |
with demo:
|
|
|
|
|
|
|
30 |
print("Interfaces Loaded:", ds_iface, es_iface) # Check if interfaces are loaded correctly
|
31 |
|
32 |
def desc_to_image(desc):
|