Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -576,6 +576,8 @@ with gr.Blocks(css=STYLES) as demo:
|
|
576 |
|
577 |
with gr.Tab("Chatting"):
|
578 |
with gr.Column(elem_classes=['group-border']):
|
|
|
|
|
579 |
chatbot = gr.Chatbot([], elem_classes=['no-label-chatbot'])
|
580 |
chat_txt = gr.Textbox(placeholder="enter question", elem_classes=['no-label'])
|
581 |
|
@@ -593,10 +595,11 @@ with gr.Blocks(css=STYLES) as demo:
|
|
593 |
gen_cover_art_prompt = gr.Textbox(lines=3, max_lines=3, elem_classes=['no-label'])
|
594 |
# toggle between "generate prompt for cover art" and "generate cover art"
|
595 |
gen_cover_art_btn = gr.Button("generate prompt for cover art", elem_classes=['control-label-font', 'control-button'])
|
596 |
-
gen_pdf_btn = gr.Button("export as PDF", elem_classes=['control-label-font', 'control-button'])
|
597 |
-
pdf_file = gr.File(visible=False)
|
598 |
|
599 |
with gr.Column(elem_classes=['group-border']):
|
|
|
|
|
|
|
600 |
gr.Markdown("by clicking the button below, your stories will be shared within community. All shared stories will be "
|
601 |
"archived in [llama2-stories](https://huggingface.co/datasets/chansung/llama2-stories) dataset repository, and "
|
602 |
"they will be displayed in [chansung/LLaMA2-Story-Showcase](https://huggingface.co/spaces/chansung/LLaMA2-Story-Showcase) space.")
|
|
|
576 |
|
577 |
with gr.Tab("Chatting"):
|
578 |
with gr.Column(elem_classes=['group-border']):
|
579 |
+
gr.Makrdown("in this section, you can chat with LLaMA2 about the story that you are writing right now. "
|
580 |
+
"all the text in the textbox on the left will be injected as a context.")
|
581 |
chatbot = gr.Chatbot([], elem_classes=['no-label-chatbot'])
|
582 |
chat_txt = gr.Textbox(placeholder="enter question", elem_classes=['no-label'])
|
583 |
|
|
|
595 |
gen_cover_art_prompt = gr.Textbox(lines=3, max_lines=3, elem_classes=['no-label'])
|
596 |
# toggle between "generate prompt for cover art" and "generate cover art"
|
597 |
gen_cover_art_btn = gr.Button("generate prompt for cover art", elem_classes=['control-label-font', 'control-button'])
|
|
|
|
|
598 |
|
599 |
with gr.Column(elem_classes=['group-border']):
|
600 |
+
gen_pdf_btn = gr.Button("export as PDF", elem_classes=['control-label-font', 'control-button'])
|
601 |
+
pdf_file = gr.File(visible=False)
|
602 |
+
|
603 |
gr.Markdown("by clicking the button below, your stories will be shared within community. All shared stories will be "
|
604 |
"archived in [llama2-stories](https://huggingface.co/datasets/chansung/llama2-stories) dataset repository, and "
|
605 |
"they will be displayed in [chansung/LLaMA2-Story-Showcase](https://huggingface.co/spaces/chansung/LLaMA2-Story-Showcase) space.")
|