Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ def predict(image: PIL.Image.Image, score_threshold: float,
|
|
| 130 |
message = ""
|
| 131 |
info = f"<div><p>{message}<p></div>"
|
| 132 |
|
| 133 |
-
return (a,res
|
| 134 |
|
| 135 |
|
| 136 |
def main():
|
|
@@ -155,8 +155,8 @@ def main():
|
|
| 155 |
],
|
| 156 |
[
|
| 157 |
gr.outputs.Textbox(label='Output String'),
|
| 158 |
-
gr.outputs.
|
| 159 |
-
gr.outputs.
|
| 160 |
],
|
| 161 |
examples=[
|
| 162 |
['miku.jpg',0.5],
|
|
|
|
| 130 |
message = ""
|
| 131 |
info = f"<div><p>{message}<p></div>"
|
| 132 |
|
| 133 |
+
return (a,info,res)
|
| 134 |
|
| 135 |
|
| 136 |
def main():
|
|
|
|
| 155 |
],
|
| 156 |
[
|
| 157 |
gr.outputs.Textbox(label='Output String'),
|
| 158 |
+
gr.outputs.HTML(),
|
| 159 |
+
gr.outputs.Label(label='Output Labels')
|
| 160 |
],
|
| 161 |
examples=[
|
| 162 |
['miku.jpg',0.5],
|