Spaces:
Runtime error
Runtime error
SuperPunk2077
commited on
Commit
•
5360188
1
Parent(s):
24af3e8
Update app.py
Browse files
app.py
CHANGED
@@ -6,24 +6,67 @@ def greet(name):
|
|
6 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
iface.launch()
|
8 |
|
|
|
9 |
|
|
|
10 |
|
11 |
-
import
|
12 |
|
13 |
-
import ImageLoader [ loadImageFromImage ( images )))
|
14 |
|
15 |
-
import
|
16 |
|
17 |
-
|
18 |
|
19 |
-
|
20 |
|
21 |
-
|
22 |
|
23 |
-
|
24 |
|
25 |
-
|
26 |
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
-
( loadPath ( icon ( loadpath ( image )))))
|
|
|
6 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
iface.launch()
|
8 |
|
9 |
+
import os
|
10 |
|
11 |
+
from os.repository import rmdb
|
12 |
|
13 |
+
from rmdb.lib import rmdb.image
|
14 |
|
|
|
15 |
|
16 |
+
import image
|
17 |
|
18 |
+
# create the Image object for printing and reading
|
19 |
|
20 |
+
# create the images from a different image with a different text style and color
|
21 |
|
22 |
+
image.save()
|
23 |
|
24 |
+
# print the images to the screen (or if the image starts writing)
|
25 |
|
26 |
+
# display the raw pixel colors
|
27 |
|
28 |
+
# clear the screen at the beginning of the print
|
29 |
+
|
30 |
+
print "
|
31 |
+
|
32 |
+
" , image.getImage( " ai " )
|
33 |
+
|
34 |
+
# add the images to the screen as shown when saving
|
35 |
+
|
36 |
+
print "
|
37 |
+
|
38 |
+
" , image.addImage( " ai " )
|
39 |
+
|
40 |
+
# clear the screen at the end of the print
|
41 |
+
|
42 |
+
print "
|
43 |
+
|
44 |
+
" , image.addImage( " ai " )
|
45 |
+
|
46 |
+
# convert the image to a readable binary
|
47 |
+
|
48 |
+
print "
|
49 |
+
|
50 |
+
" , image.toString()
|
51 |
+
|
52 |
+
|
53 |
+
import image2
|
54 |
+
|
55 |
+
import rmdb2
|
56 |
+
|
57 |
+
from rmdb2.rmdb2 import ImageObject
|
58 |
+
|
59 |
+
from rmdb2.lib import ImageObject
|
60 |
+
|
61 |
+
|
62 |
+
import image
|
63 |
+
|
64 |
+
import os
|
65 |
+
|
66 |
+
from rmdb2.lib import rmdb2.application.imageObject
|
67 |
+
|
68 |
+
|
69 |
+
import image2
|
70 |
+
|
71 |
+
from rmdb2
|
72 |
|
|