Parishri07 commited on
Commit
97e153c
Β·
verified Β·
1 Parent(s): 73cfa5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -137,8 +137,8 @@ with gr.Blocks(title="RetailGenie") as demo:
137
  quantity = gr.Dropdown(label="πŸ”’ Quantity", visible=False)
138
 
139
  result = gr.Textbox(label="πŸ” Product Info", lines=5)
140
- store_map = gr.Image(label="πŸ—ΊοΈ Store Map", value=STORE_MAP_FILE, type="pil")
141
- data_state = gr.State()
142
  reset_btn = gr.Button("πŸ”„ Reset All")
143
 
144
  country.change(lambda c: gr.update(choices=get_subfolders(os.path.join(BASE_DIR, c)) if c else [], value=None, interactive=True), inputs=country, outputs=state)
 
137
  quantity = gr.Dropdown(label="πŸ”’ Quantity", visible=False)
138
 
139
  result = gr.Textbox(label="πŸ” Product Info", lines=5)
140
+ store_map = gr.Image(label="πŸ—ΊοΈ Store Map", value=Image.open(STORE_MAP_FILE), type="pil")
141
+ data_state = gr.State(value={})
142
  reset_btn = gr.Button("πŸ”„ Reset All")
143
 
144
  country.change(lambda c: gr.update(choices=get_subfolders(os.path.join(BASE_DIR, c)) if c else [], value=None, interactive=True), inputs=country, outputs=state)