Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|