Spaces:
Sleeping
Sleeping
Raphaël Bournhonesque
commited on
Commit
·
a894b74
1
Parent(s):
40f633f
make code python3.7 compatible
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import copy
|
2 |
import enum
|
3 |
import os
|
4 |
-
from typing import Optional
|
5 |
|
6 |
import requests
|
7 |
import streamlit as st
|
@@ -41,7 +41,7 @@ def get_predictions(barcode: str, model_name: str, threshold: Optional[float] =
|
|
41 |
|
42 |
def display_predictions(
|
43 |
barcode: str,
|
44 |
-
model_names:
|
45 |
threshold: Optional[float] = None,
|
46 |
):
|
47 |
debug_showed = False
|
|
|
1 |
import copy
|
2 |
import enum
|
3 |
import os
|
4 |
+
from typing import List, Optional
|
5 |
|
6 |
import requests
|
7 |
import streamlit as st
|
|
|
41 |
|
42 |
def display_predictions(
|
43 |
barcode: str,
|
44 |
+
model_names: List[str],
|
45 |
threshold: Optional[float] = None,
|
46 |
):
|
47 |
debug_showed = False
|