AlirezaF138 commited on
Commit
0f44356
1 Parent(s): 6c06121

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -4,9 +4,8 @@ import gradio as gr
4
  import asyncio
5
  import time
6
 
7
- # Paths to your PCA model and component names file
8
  PCA_MODEL_PATH = "pca_texture_model.npy"
9
- COMPONENT_NAMES_PATH = "component_names.txt" # File containing component names (one name per line)
10
 
11
  # Load PCA model
12
  pca = np.load(PCA_MODEL_PATH, allow_pickle=True).item()
@@ -97,7 +96,6 @@ with gr.Blocks() as demo:
97
  fn=debounced_update_texture,
98
  inputs=[state] + sliders,
99
  outputs=output_image,
100
- _js=None # No JavaScript, handled in Python
101
  )
102
 
103
  # Randomize texture and update sliders and image with debouncing
 
4
  import asyncio
5
  import time
6
 
 
7
  PCA_MODEL_PATH = "pca_texture_model.npy"
8
+ COMPONENT_NAMES_PATH = "component_names.txt"
9
 
10
  # Load PCA model
11
  pca = np.load(PCA_MODEL_PATH, allow_pickle=True).item()
 
96
  fn=debounced_update_texture,
97
  inputs=[state] + sliders,
98
  outputs=output_image,
 
99
  )
100
 
101
  # Randomize texture and update sliders and image with debouncing