Spaces:
Runtime error
Runtime error
Laskari-Naveen
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -32,16 +32,6 @@ def run_prediction(image, model, processor):
|
|
32 |
prediction = processor.token2json(prediction)
|
33 |
return prediction, outputs
|
34 |
|
35 |
-
def split_and_expand(row):
|
36 |
-
if row['Key'] == "33_Missing_Teeth":
|
37 |
-
keys = [row['Key']]
|
38 |
-
values = row['Value'].split(';')[0]
|
39 |
-
else:
|
40 |
-
keys = [row['Key']] * len(row['Value'].split(';'))
|
41 |
-
values = row['Value'].split(';')
|
42 |
-
return pd.DataFrame({'Key': keys, 'Value': values})
|
43 |
-
|
44 |
-
|
45 |
uploaded_file = st.file_uploader("Choose a file")
|
46 |
if uploaded_file is not None:
|
47 |
content = uploaded_file.read()
|
|
|
32 |
prediction = processor.token2json(prediction)
|
33 |
return prediction, outputs
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
uploaded_file = st.file_uploader("Choose a file")
|
36 |
if uploaded_file is not None:
|
37 |
content = uploaded_file.read()
|