Skip to content

Commit

Permalink
streamlit API changed (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
leochan2009 authored and tvst committed Oct 24, 2019
1 parent cecd09b commit c482a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Expand Up @@ -217,7 +217,7 @@ def load_image(url):
# Run the YOLO model to detect objects.
def yolo_v3(image, confidence_threshold, overlap_threshold):
# Load the network. Because this is cached it will only happen once.
@st.cache(ignore_hash=True)
@st.cache(allow_output_mutation=True)
def load_network(config_path, weights_path):
net = cv2.dnn.readNetFromDarknet(config_path, weights_path)
output_layer_names = net.getLayerNames()
Expand Down

0 comments on commit c482a7a

Please sign in to comment.