hysts HF staff commited on
Commit
fc494ea
1 Parent(s): f4ef203
Files changed (2) hide show
  1. README.md +3 -2
  2. app.py +8 -1
README.md CHANGED
@@ -1,5 +1,6 @@
1
  ---
2
- title: Base Space
 
3
  emoji: ⚡
4
  colorFrom: red
5
  colorTo: purple
@@ -7,8 +8,8 @@ sdk: gradio
7
  sdk_version: 3.43.2
8
  python_version: 3.10.12
9
  app_file: app.py
10
- license: mit
11
  duplicated_from: hysts-debug/base-space
 
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ license: mit
3
+ title: image-url-in-examples
4
  emoji: ⚡
5
  colorFrom: red
6
  colorTo: purple
 
8
  sdk_version: 3.43.2
9
  python_version: 3.10.12
10
  app_file: app.py
 
11
  duplicated_from: hysts-debug/base-space
12
+ pinned: false
13
  ---
14
 
15
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -3,5 +3,12 @@
3
  import gradio as gr
4
 
5
  with gr.Blocks() as demo:
6
- pass
 
 
 
 
 
 
 
7
  demo.queue().launch()
 
3
  import gradio as gr
4
 
5
  with gr.Blocks() as demo:
6
+ image = gr.Image(label="image", height=300)
7
+ prompt = gr.Textbox(label="prompt")
8
+ gr.Examples(
9
+ examples=[
10
+ ["https://huggingface.co/Adapter/t2iadapter/resolve/main/figs_SDXLV1.0/org_sketch.png", "aaaa"],
11
+ ],
12
+ inputs=[image, prompt],
13
+ )
14
  demo.queue().launch()