Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,7 @@ def gen_image(prompt: str):
|
|
20 |
content = requests.post(url, json={"text": prompt}).content
|
21 |
try:
|
22 |
new_content = content.decode(encoding='utf-8')
|
|
|
23 |
if new_content.startswith("error: "):
|
24 |
return []
|
25 |
except:
|
@@ -46,10 +47,11 @@ def read_content(file_path: str) -> str:
|
|
46 |
block = gr.Blocks(css=read_content('style.css'))
|
47 |
|
48 |
examples = [
|
49 |
-
'
|
50 |
-
'
|
51 |
-
'
|
52 |
-
'
|
|
|
53 |
]
|
54 |
|
55 |
|
|
|
20 |
content = requests.post(url, json={"text": prompt}).content
|
21 |
try:
|
22 |
new_content = content.decode(encoding='utf-8')
|
23 |
+
|
24 |
if new_content.startswith("error: "):
|
25 |
return []
|
26 |
except:
|
|
|
47 |
block = gr.Blocks(css=read_content('style.css'))
|
48 |
|
49 |
examples = [
|
50 |
+
'枯藤老树昏鸦,水墨画',
|
51 |
+
'小桥流水人家,水墨画',
|
52 |
+
'古道西风瘦马,水墨画',
|
53 |
+
'夕阳西下,水墨画',
|
54 |
+
'断肠人在天涯,水墨画',
|
55 |
]
|
56 |
|
57 |
|