Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ text2image = pipeline(Tasks.text_to_image_synthesis,"damo/multi-modal_chinese_st
|
|
9 |
|
10 |
def inference(text):
|
11 |
|
12 |
-
result = text2image({
|
13 |
-
cv2.imwrite(
|
14 |
|
15 |
return "result.png"
|
16 |
|
|
|
9 |
|
10 |
def inference(text):
|
11 |
|
12 |
+
result = text2image({"text":"text"})
|
13 |
+
cv2.imwrite("result.png", result["output_imgs"][0])
|
14 |
|
15 |
return "result.png"
|
16 |
|