mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
5f25eb6836
* changes
* changes
* add changeset
* changes
* changes
* fix box changes on website
* add changeset
* changes
* changes
* Revert "changes"
This reverts commit 189b4e844a
.
* chanegs
* changes
* changes
* changes
* changes
* add changeset
* Update fancy-bats-deny.md
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
20 lines
684 B
Python
20 lines
684 B
Python
import gradio as gr
|
|
|
|
with gr.Blocks() as demo:
|
|
with gr.Row():
|
|
text1 = gr.Textbox(label="t1")
|
|
slider2 = gr.Textbox(label="s2")
|
|
drop3 = gr.Dropdown(["a", "b", "c"], label="d3")
|
|
with gr.Row():
|
|
with gr.Column(scale=1, min_width=600):
|
|
text1 = gr.Textbox(label="prompt 1")
|
|
text2 = gr.Textbox(label="prompt 2")
|
|
inbtw = gr.Button("Between")
|
|
text4 = gr.Textbox(label="prompt 1")
|
|
text5 = gr.Textbox(label="prompt 2")
|
|
with gr.Column(scale=2, min_width=600):
|
|
img1 = gr.Image("images/cheetah.jpg")
|
|
btn = gr.Button("Go")
|
|
|
|
if __name__ == "__main__":
|
|
demo.launch() |