aliabd HF staff commited on
Commit
6b10a5a
·
1 Parent(s): d8157f0

Upload with huggingface_hub

Browse files
Files changed (4) hide show
  1. README.md +6 -7
  2. images/cheetah.jpg +0 -0
  3. requirements.txt +1 -0
  4. run.py +20 -0
README.md CHANGED
@@ -1,12 +1,11 @@
 
1
  ---
2
- title: Rows And Columns Main
3
- emoji: 🚀
4
- colorFrom: red
5
- colorTo: yellow
6
  sdk: gradio
7
  sdk_version: 3.6
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_main
4
+ emoji: 🔥
5
+ colorFrom: indigo
6
+ colorTo: indigo
7
  sdk: gradio
8
  sdk_version: 3.6
9
+ app_file: run.py
10
  pinned: false
11
  ---
 
 
images/cheetah.jpg ADDED
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ https://gradio-main-build.s3.amazonaws.com/c3bec6153737855510542e8154391f328ac72606/gradio-3.6-py3-none-any.whl
run.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()