skytnt commited on
Commit
d69b24c
β€’
1 Parent(s): 7df097b

update sdk

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +4 -4
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: πŸ“ˆ
4
  colorFrom: blue
5
  colorTo: pink
6
  sdk: gradio
7
- sdk_version: 3.12.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
4
  colorFrom: blue
5
  colorTo: pink
6
  sdk: gradio
7
+ sdk_version: 4.36.1
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
app.py CHANGED
@@ -82,8 +82,8 @@ if __name__ == '__main__':
82
  gen_submit = gr.Button("Generate", variant="primary")
83
  with gr.Column():
84
  gen_output1 = gr.Image(label="output image")
85
- select_img_input_w1 = gr.Variable()
86
- select_img_input_img1 = gr.Variable()
87
 
88
  with gr.TabItem("generate video"):
89
  with gr.Row():
@@ -97,7 +97,7 @@ if __name__ == '__main__':
97
  with gr.Group():
98
  select_img1_button = gr.Button("Select", variant="primary")
99
  select_img1_output_img = gr.Image(label="selected image 1")
100
- select_img1_output_w = gr.Variable()
101
  with gr.Column():
102
  gr.Markdown("please select image 2")
103
  select_img2_dropdown = gr.Radio(label="source", value="current generated image",
@@ -105,7 +105,7 @@ if __name__ == '__main__':
105
  with gr.Group():
106
  select_img2_button = gr.Button("Select", variant="primary")
107
  select_img2_output_img = gr.Image(label="selected image 2")
108
- select_img2_output_w = gr.Variable()
109
  generate_video_frame = gr.Slider(minimum=10, maximum=30, step=1, label="frame", value=15)
110
  with gr.Group():
111
  generate_video_button = gr.Button("Generate", variant="primary")
 
82
  gen_submit = gr.Button("Generate", variant="primary")
83
  with gr.Column():
84
  gen_output1 = gr.Image(label="output image")
85
+ select_img_input_w1 = gr.State()
86
+ select_img_input_img1 = gr.State()
87
 
88
  with gr.TabItem("generate video"):
89
  with gr.Row():
 
97
  with gr.Group():
98
  select_img1_button = gr.Button("Select", variant="primary")
99
  select_img1_output_img = gr.Image(label="selected image 1")
100
+ select_img1_output_w = gr.State()
101
  with gr.Column():
102
  gr.Markdown("please select image 2")
103
  select_img2_dropdown = gr.Radio(label="source", value="current generated image",
 
105
  with gr.Group():
106
  select_img2_button = gr.Button("Select", variant="primary")
107
  select_img2_output_img = gr.Image(label="selected image 2")
108
+ select_img2_output_w = gr.State()
109
  generate_video_frame = gr.Slider(minimum=10, maximum=30, step=1, label="frame", value=15)
110
  with gr.Group():
111
  generate_video_button = gr.Button("Generate", variant="primary")