Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def inference(
|
|
117 |
[[rec, score] for rec, score in zip(rec_res, scores)],
|
118 |
columns=("Rec", "Score"),
|
119 |
)
|
120 |
-
return vis_img, out_df, elapse
|
121 |
|
122 |
|
123 |
def tips(txt: str, wait_time: int = 2, icon: str = "🎉"):
|
@@ -199,8 +199,5 @@ if __name__ == "__main__":
|
|
199 |
st.markdown("### Rec Result:")
|
200 |
st.markdown(elapse)
|
201 |
st.dataframe(out_json, use_container_width=True)
|
202 |
-
|
203 |
-
st.markdown("### Only Txts")
|
204 |
-
st.code(only_txts)
|
205 |
else:
|
206 |
tips("识别结果为空", wait_time=5, icon="⚠️")
|
|
|
117 |
[[rec, score] for rec, score in zip(rec_res, scores)],
|
118 |
columns=("Rec", "Score"),
|
119 |
)
|
120 |
+
return vis_img, out_df, elapse
|
121 |
|
122 |
|
123 |
def tips(txt: str, wait_time: int = 2, icon: str = "🎉"):
|
|
|
199 |
st.markdown("### Rec Result:")
|
200 |
st.markdown(elapse)
|
201 |
st.dataframe(out_json, use_container_width=True)
|
|
|
|
|
|
|
202 |
else:
|
203 |
tips("识别结果为空", wait_time=5, icon="⚠️")
|