ThomasBlumet
commited on
Commit
·
12285d1
1
Parent(s):
d21b794
change textbox
Browse files
app.py
CHANGED
@@ -43,13 +43,13 @@ with gr.Blocks() as demo:
|
|
43 |
gr.Markdown("TeLLMyStory chatbot")
|
44 |
#input_text = blocks.text(name="input_text", label="Enter your story idea here", default="Once upon a time, there was")
|
45 |
with gr.Row():
|
46 |
-
input_text =
|
47 |
clear_button = demo.button(name="clear_button", label="Clear", fn=clear_save_textbox, inputs=[input_text],variants=["secondary"])
|
48 |
retry_button = demo.button(name="retry_button", label="Retry", fn=delete_previous_text, inputs=[input_text],variants=["secondary"])
|
49 |
|
50 |
with gr.Row():
|
51 |
gr.Markdown("History of your story ideas")
|
52 |
-
gen_story =
|
53 |
|
54 |
send_button = demo.button(name="send_button", label="Send", fn=show_input_text, inputs=[input_text],outputs=[gen_story],variants=["primary"])
|
55 |
|
|
|
43 |
gr.Markdown("TeLLMyStory chatbot")
|
44 |
#input_text = blocks.text(name="input_text", label="Enter your story idea here", default="Once upon a time, there was")
|
45 |
with gr.Row():
|
46 |
+
input_text = demo.textbox(name="input_text", label="Enter your story idea here", default="Once upon a time, there was")
|
47 |
clear_button = demo.button(name="clear_button", label="Clear", fn=clear_save_textbox, inputs=[input_text],variants=["secondary"])
|
48 |
retry_button = demo.button(name="retry_button", label="Retry", fn=delete_previous_text, inputs=[input_text],variants=["secondary"])
|
49 |
|
50 |
with gr.Row():
|
51 |
gr.Markdown("History of your story ideas")
|
52 |
+
gen_story = demo.textbox(name="story", label="History", default=" ", type="text",readonly=True)
|
53 |
|
54 |
send_button = demo.button(name="send_button", label="Send", fn=show_input_text, inputs=[input_text],outputs=[gen_story],variants=["primary"])
|
55 |
|