gradio_test / app.py
mohammad2928git's picture
Update app.py
1593fc2 verified
raw
history blame
532 Bytes
import gradio as gr
def greet(name, intensity):
return "Hello " * intensity + name + "!"
with gr.Blocks() as demo:
with gr.Row():
with gr.Column(scale=2):
text1 = gr.Textbox(lines=7, label="Prompt", scale=2)
with gr.Row():
btn1 = gr.Button("Submit", scale=1)
btn2 = gr.Button("Clear", scale=1)
btn3 = gr.Button("Clean Memory", scale=2)
with gr.Column(scale=2):
gr.Text(lines=15, label="Output", scale=2)
demo.launch()