Skip to content

Commit

Permalink
Update task_choice options #5
Browse files Browse the repository at this point in the history
  • Loading branch information
pramitchoudhary committed Nov 1, 2022
1 parent cc9a585 commit 38743af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions img_styler/ui/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def update_faces(q: Q, save=False):
q.page['source_face'] = get_source_face_card(
img2buf(q.client.source_face), type='jpg', height='520px', width='500px'
)
if q.client.task_choice == 'C':
if q.client.task_choice == 'D':
q.page['prompt_form'] = ui.form_card(ui.box('main', order=1, height='200px', width='900px'), items=[
ui.copyable_text(name='prompt_textbox', label='Prompt (Express your creativity)', multiline=True, value=txt_val),
ui.button(name='prompt_apply', label='Apply')])
Expand All @@ -58,7 +58,7 @@ async def update_processed_face(q: Q, save=False):
q.page['processed_face'] = get_processed_face_card(
img_buf, title="Fixed Image", type='jpg', layout_pos='middle_right', order=2
)
if q.client.task_choice == 'C':
if q.client.task_choice == 'D':
q.page['prompt_form'] = ui.form_card(ui.box('main', order=1, height='200px', width='900px'), items=[
ui.textbox(name='prompt_textbox', label='Prompt', multiline=True, value=q.client.prompt_textbox),
ui.button(name='prompt_apply', label='Apply')])
Expand Down

0 comments on commit 38743af

Please sign in to comment.