Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -551,7 +551,7 @@ def model_predict(word):
|
|
551 |
# os.makedirs(folderName)
|
552 |
# fileName = folderName+ "/" + time_now + ".png"
|
553 |
# cv2.imwrite(fileName,word)
|
554 |
-
pil_image = Image.fromarray(
|
555 |
#pil_image.convert("RGBA")
|
556 |
for i in range(0,15):
|
557 |
if mark[i]==0:
|
@@ -601,8 +601,6 @@ demo = gr.Interface(fn=model_predict, inputs= "paint", outputs=["text","image"],
|
|
601 |
examples=[
|
602 |
["Tensorflow/workspace/images/tmpbvc06xxf.png"],
|
603 |
["Tensorflow/workspace/images/tmpfhin6fzg.png"],
|
604 |
-
["Tensorflow/workspace/images/0001in.png"],
|
605 |
-
["Tensorflow/workspace/images/0031in.png"],
|
606 |
],
|
607 |
article=citation_text,allow_flagging="auto",flagging_callback=hf_writer)
|
608 |
demo.launch()
|
|
|
551 |
# os.makedirs(folderName)
|
552 |
# fileName = folderName+ "/" + time_now + ".png"
|
553 |
# cv2.imwrite(fileName,word)
|
554 |
+
pil_image = Image.fromarray(word)
|
555 |
#pil_image.convert("RGBA")
|
556 |
for i in range(0,15):
|
557 |
if mark[i]==0:
|
|
|
601 |
examples=[
|
602 |
["Tensorflow/workspace/images/tmpbvc06xxf.png"],
|
603 |
["Tensorflow/workspace/images/tmpfhin6fzg.png"],
|
|
|
|
|
604 |
],
|
605 |
article=citation_text,allow_flagging="auto",flagging_callback=hf_writer)
|
606 |
demo.launch()
|