AlirezaF138 commited on
Commit
f2c754e
·
verified ·
1 Parent(s): 56e1cfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -83,11 +83,6 @@ with gr.Blocks() as demo:
83
  label=component_names[i]
84
  )
85
  sliders.append(slider)
86
-
87
- update_texture_button = gr.Button("Update Texture")
88
- random_button = gr.Button("Randomize Texture")
89
- get_components_button = gr.Button("Get Components from Image")
90
-
91
  with gr.Column():
92
  output_image = gr.Image(
93
  label="Generated Texture"
@@ -97,6 +92,9 @@ with gr.Blocks() as demo:
97
  sources=['upload', 'clipboard'],
98
  type="numpy"
99
  )
 
 
 
100
 
101
  # Update texture when clicking the "Update Texture" button
102
  update_texture_button.click(
 
83
  label=component_names[i]
84
  )
85
  sliders.append(slider)
 
 
 
 
 
86
  with gr.Column():
87
  output_image = gr.Image(
88
  label="Generated Texture"
 
92
  sources=['upload', 'clipboard'],
93
  type="numpy"
94
  )
95
+ update_texture_button = gr.Button("Update Texture")
96
+ random_button = gr.Button("Randomize Texture")
97
+ get_components_button = gr.Button("Get Components from Image")
98
 
99
  # Update texture when clicking the "Update Texture" button
100
  update_texture_button.click(