Spaces:
Runtime error
Runtime error
Update chain_app.py
Browse files- chain_app.py +1 -21
chain_app.py
CHANGED
@@ -152,8 +152,7 @@ async def on_chat_start():
|
|
152 |
await cl.Message(
|
153 |
content="I can make high quality & resoloution images for you, This is an example of what i can do!",
|
154 |
elements=[image],
|
155 |
-
|
156 |
-
|
157 |
if chat_profile == 'GPT-4':
|
158 |
await cl.ChatSettings(
|
159 |
[
|
@@ -441,25 +440,6 @@ async def main(message: cl.Message):
|
|
441 |
).send()
|
442 |
|
443 |
elif chat_profile == 'Image-Generation':
|
444 |
-
await cl.ChatSettings(
|
445 |
-
Slider(
|
446 |
-
id="Image_Width",
|
447 |
-
label="Image Width",
|
448 |
-
initial=512,
|
449 |
-
min=256,
|
450 |
-
max=2048,
|
451 |
-
step=64,
|
452 |
-
tooltip="Measured in pixels",
|
453 |
-
),
|
454 |
-
Slider(
|
455 |
-
id="Image_Height",
|
456 |
-
label="Image Height",
|
457 |
-
initial=512,
|
458 |
-
min=256,
|
459 |
-
max=2048,
|
460 |
-
step=64,
|
461 |
-
tooltip="Measured in pixels",
|
462 |
-
)).send()
|
463 |
result = hf_image_client.predict(
|
464 |
prompt=message.content,
|
465 |
negative_prompt="",
|
|
|
152 |
await cl.Message(
|
153 |
content="I can make high quality & resoloution images for you, This is an example of what i can do!",
|
154 |
elements=[image],
|
155 |
+
).send()
|
|
|
156 |
if chat_profile == 'GPT-4':
|
157 |
await cl.ChatSettings(
|
158 |
[
|
|
|
440 |
).send()
|
441 |
|
442 |
elif chat_profile == 'Image-Generation':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
result = hf_image_client.predict(
|
444 |
prompt=message.content,
|
445 |
negative_prompt="",
|