Skip to content

Commit 30e64b1

Browse files
authored
fix image gen (#1528)
1 parent 6a76b02 commit 30e64b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pcweb/pages/framework/demos/image_gen/image_gen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
class ImageGenState(rx.State):
88
"""The app state."""
99

10-
image_url = ""
11-
processing = False
10+
image_url: str = ""
11+
processing: bool = False
1212

1313
@rx.event
1414
def get_image(self, form_data):
@@ -24,7 +24,7 @@ def get_image(self, form_data):
2424
"black-forest-labs/flux-schnell",
2525
input=input,
2626
)
27-
self.image_url = output[0]
27+
self.image_url = str(output[0])
2828
self.processing = False
2929

3030

0 commit comments

Comments
 (0)