Spaces:
Sleeping
Sleeping
luelhagos
commited on
Commit
·
0f4aa6d
1
Parent(s):
6b111fb
updated
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def create_interface():
|
|
| 61 |
|
| 62 |
with gr.Row():
|
| 63 |
generate_btn = gr.Button("Generate", variant="primary")
|
| 64 |
-
clear_btn = gr.
|
| 65 |
|
| 66 |
generate_btn.click(
|
| 67 |
fn=generate_text,
|
|
@@ -69,12 +69,6 @@ def create_interface():
|
|
| 69 |
outputs=output_text
|
| 70 |
)
|
| 71 |
|
| 72 |
-
clear_btn.click(
|
| 73 |
-
fn=lambda: ("", ""),
|
| 74 |
-
inputs=[],
|
| 75 |
-
outputs=[input_prompt, output_text]
|
| 76 |
-
)
|
| 77 |
-
|
| 78 |
gr.Examples(
|
| 79 |
examples=[
|
| 80 |
["ትግራይ"],
|
|
|
|
| 61 |
|
| 62 |
with gr.Row():
|
| 63 |
generate_btn = gr.Button("Generate", variant="primary")
|
| 64 |
+
clear_btn = gr.ClearButton([input_prompt, output_text])
|
| 65 |
|
| 66 |
generate_btn.click(
|
| 67 |
fn=generate_text,
|
|
|
|
| 69 |
outputs=output_text
|
| 70 |
)
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
gr.Examples(
|
| 73 |
examples=[
|
| 74 |
["ትግራይ"],
|