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