aliabd HF staff commited on
Commit
1672f6e
1 Parent(s): a993168

Upload with huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +6 -6
  2. app.py +20 -0
  3. images/cheetah.jpg +0 -0
README.md CHANGED
@@ -1,12 +1,12 @@
 
1
  ---
2
- title: Rows And Columns
3
- emoji: 👀
4
- colorFrom: gray
5
- colorTo: yellow
6
  sdk: gradio
7
  sdk_version: 3.3.1
 
8
  app_file: app.py
9
  pinned: false
10
  ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
+
2
  ---
3
+ title: rows_and_columns
4
+ emoji: 🔥
5
+ colorFrom: indigo
6
+ colorTo: indigo
7
  sdk: gradio
8
  sdk_version: 3.3.1
9
+
10
  app_file: app.py
11
  pinned: false
12
  ---
 
 
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ with gr.Blocks() as demo:
4
+ with gr.Row():
5
+ text1 = gr.Textbox(label="t1")
6
+ slider2 = gr.Textbox(label="s2")
7
+ drop3 = gr.Dropdown(["a", "b", "c"], label="d3")
8
+ with gr.Row():
9
+ with gr.Column(scale=1, min_width=600):
10
+ text1 = gr.Textbox(label="prompt 1")
11
+ text2 = gr.Textbox(label="prompt 2")
12
+ inbtw = gr.Button("Between")
13
+ text4 = gr.Textbox(label="prompt 1")
14
+ text5 = gr.Textbox(label="prompt 2")
15
+ with gr.Column(scale=2, min_width=600):
16
+ img1 = gr.Image("images/cheetah.jpg")
17
+ btn = gr.Button("Go").style(full_width=True)
18
+
19
+ if __name__ == "__main__":
20
+ demo.launch()
images/cheetah.jpg ADDED