Spaces:
Sleeping
Sleeping
fix
Browse files
app.py
CHANGED
@@ -56,7 +56,6 @@ with demo:
|
|
56 |
)
|
57 |
with gr.Row():
|
58 |
# example_prompt = gr.Radio( ["Once upon a time in a land far away"], label= "Choose a sample Prompt")
|
59 |
-
example_prompt = [""]
|
60 |
#with gr.Column:
|
61 |
input_prompt = gr.Textbox(label="Write text to prompt the model", value="Once upon a time in a land far away", lines=6)
|
62 |
|
@@ -64,8 +63,9 @@ with demo:
|
|
64 |
generated_txt = gr.Textbox(lines=3)
|
65 |
|
66 |
b1 = gr.Button("Generate Text")
|
67 |
-
b1.click(text_generate,inputs=[example_prompt, input_prompt], outputs=generated_txt)
|
68 |
-
|
|
|
69 |
with gr.Row():
|
70 |
gr.Markdown("")
|
71 |
|
|
|
56 |
)
|
57 |
with gr.Row():
|
58 |
# example_prompt = gr.Radio( ["Once upon a time in a land far away"], label= "Choose a sample Prompt")
|
|
|
59 |
#with gr.Column:
|
60 |
input_prompt = gr.Textbox(label="Write text to prompt the model", value="Once upon a time in a land far away", lines=6)
|
61 |
|
|
|
63 |
generated_txt = gr.Textbox(lines=3)
|
64 |
|
65 |
b1 = gr.Button("Generate Text")
|
66 |
+
# b1.click(text_generate,inputs=[example_prompt, input_prompt], outputs=generated_txt)
|
67 |
+
b1.click(text_generate,inputs=[input_prompt], outputs=generated_txt)
|
68 |
+
|
69 |
with gr.Row():
|
70 |
gr.Markdown("")
|
71 |
|