Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -491,7 +491,6 @@ with gr.Blocks(css=STYLES) as demo:
|
|
491 |
'Cyborg Of A Beast',
|
492 |
'Man At The Graveyard',
|
493 |
'Vampire Of The Land',
|
494 |
-
'Do not trust your wife',
|
495 |
'A software engineer who is looking for job',
|
496 |
'A software engineer licensed to kill'
|
497 |
]
|
@@ -580,7 +579,7 @@ with gr.Blocks(css=STYLES) as demo:
|
|
580 |
"model will suggest a prompt for you based on your story.")
|
581 |
|
582 |
cover_art = gr.Image(interactive=False, elem_classes=['no-label-image'])
|
583 |
-
gen_cover_art_prompt = gr.Textbox(lines=
|
584 |
# toggle between "generate prompt for cover art" and "generate cover art"
|
585 |
gen_cover_art_btn = gr.Button("generate prompt for cover art", elem_classes=['control-label-font', 'control-button'])
|
586 |
gen_pdf_btn = gr.Button("export as PDF", elem_classes=['control-label-font', 'control-button'])
|
@@ -601,7 +600,7 @@ with gr.Blocks(css=STYLES) as demo:
|
|
601 |
outputs=[title],
|
602 |
_js="""
|
603 |
function get_random_title() {
|
604 |
-
let titles = ['Pokemon training story', 'The Sun of Shangri-La', 'Man In The Future', 'Friends', 'Cyborg Of A Beast', 'Man At The Graveyard', 'Vampire Of The Land', '
|
605 |
|
606 |
return titles[(Math.floor(Math.random() * titles.length))];
|
607 |
}
|
|
|
491 |
'Cyborg Of A Beast',
|
492 |
'Man At The Graveyard',
|
493 |
'Vampire Of The Land',
|
|
|
494 |
'A software engineer who is looking for job',
|
495 |
'A software engineer licensed to kill'
|
496 |
]
|
|
|
579 |
"model will suggest a prompt for you based on your story.")
|
580 |
|
581 |
cover_art = gr.Image(interactive=False, elem_classes=['no-label-image'])
|
582 |
+
gen_cover_art_prompt = gr.Textbox(lines=3, max_lines=3, elem_classes=['no-label'])
|
583 |
# toggle between "generate prompt for cover art" and "generate cover art"
|
584 |
gen_cover_art_btn = gr.Button("generate prompt for cover art", elem_classes=['control-label-font', 'control-button'])
|
585 |
gen_pdf_btn = gr.Button("export as PDF", elem_classes=['control-label-font', 'control-button'])
|
|
|
600 |
outputs=[title],
|
601 |
_js="""
|
602 |
function get_random_title() {
|
603 |
+
let titles = ['Pokemon training story', 'The Sun of Shangri-La', 'Man In The Future', 'Friends', 'Cyborg Of A Beast', 'Man At The Graveyard', 'Vampire Of The Land', 'A software engineer who is looking for job', 'A software engineer licensed to kill'];
|
604 |
|
605 |
return titles[(Math.floor(Math.random() * titles.length))];
|
606 |
}
|