Jordan Pierce
commited on
Commit
•
0dd9a9d
1
Parent(s):
c316141
quick fix
Browse files- .idea/workspace.xml +1 -1
- app.py +2 -2
.idea/workspace.xml
CHANGED
@@ -53,7 +53,7 @@
|
|
53 |
<option name="presentableId" value="Default" />
|
54 |
<updated>1666646148268</updated>
|
55 |
<workItem from="1666646160771" duration="3554000" />
|
56 |
-
<workItem from="1666649813029" duration="
|
57 |
</task>
|
58 |
<servers />
|
59 |
</component>
|
|
|
53 |
<option name="presentableId" value="Default" />
|
54 |
<updated>1666646148268</updated>
|
55 |
<workItem from="1666646160771" duration="3554000" />
|
56 |
+
<workItem from="1666649813029" duration="426000" />
|
57 |
</task>
|
58 |
<servers />
|
59 |
</component>
|
app.py
CHANGED
@@ -206,10 +206,10 @@ description = "Gradio demo for MBARI Monterey Bay Benthic Supercategory: This "
|
|
206 |
"model was trained on an 85/15 train/validation split at the " \
|
207 |
"image level. DOI: 10.5281/zenodo.5571043. "
|
208 |
|
209 |
-
examples =
|
210 |
|
211 |
gr.Interface(run_inference,
|
212 |
-
inputs=gr.inputs.Image(type="filepath"),
|
213 |
outputs=gr.outputs.Image(type="pil"),
|
214 |
enable_queue=True,
|
215 |
title=title,
|
|
|
206 |
"model was trained on an 85/15 train/validation split at the " \
|
207 |
"image level. DOI: 10.5281/zenodo.5571043. "
|
208 |
|
209 |
+
examples = glob.glob("images/*.png")
|
210 |
|
211 |
gr.Interface(run_inference,
|
212 |
+
inputs=[gr.inputs.Image(type="filepath")],
|
213 |
outputs=gr.outputs.Image(type="pil"),
|
214 |
enable_queue=True,
|
215 |
title=title,
|