Buckets:

download
raw
606 Bytes
import gradio as gr
def change_textbox(choice):
if choice == "short":
return gr.Textbox(lines=2, visible=True)
elif choice == "long":
return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet")
else:
return gr.Textbox(visible=False)
with gr.Blocks() as demo:
radio = gr.Radio(
["short", "long", "none"], label="What kind of essay would you like to write?"
)
text = gr.Textbox(lines=2, interactive=True, buttons=["copy"])
radio.change(fn=change_textbox, inputs=radio, outputs=text)
if __name__ == "__main__":
demo.launch()

Xet Storage Details

Size:
606 Bytes
·
Xet hash:
5f7b83ed622ab1072c637dc112cbb66079257db13bdcdcb7319d7d8730c5bab6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.