Spaces:
Sleeping
Sleeping
Pranomvignesh
commited on
Commit
·
c532d5b
1
Parent(s):
aaa6c62
added test file
Browse files
test.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from PIL import Image
|
2 |
+
from gradio_client import Client
|
3 |
+
|
4 |
+
client = Client("PranomVignesh/timri")
|
5 |
+
|
6 |
+
with open('examples/sample_1.jpg', "rb") as f:
|
7 |
+
image = Image.open(f)
|
8 |
+
image_bytes = f.read()
|
9 |
+
|
10 |
+
output = client.predict(
|
11 |
+
image_bytes
|
12 |
+
)
|
13 |
+
|
14 |
+
print(output)
|