Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,6 +27,7 @@ st.write(data[0]['generated_text'])
|
|
| 27 |
a = np.ones((100,100,3),np.uint8)
|
| 28 |
a[:,:,0]=255
|
| 29 |
st.image(a)
|
|
|
|
| 30 |
|
| 31 |
import requests
|
| 32 |
|
|
@@ -40,7 +41,7 @@ def query(filename):
|
|
| 40 |
return json.loads(response.content.decode("utf-8"))
|
| 41 |
|
| 42 |
output = query("pers.png")
|
| 43 |
-
st.write(output.shape)
|
| 44 |
"""
|
| 45 |
from transformers import SegformerFeatureExtractor, SegformerForSemanticSegmentation
|
| 46 |
from PIL import Image
|
|
|
|
| 27 |
a = np.ones((100,100,3),np.uint8)
|
| 28 |
a[:,:,0]=255
|
| 29 |
st.image(a)
|
| 30 |
+
st.image("pers.png")
|
| 31 |
|
| 32 |
import requests
|
| 33 |
|
|
|
|
| 41 |
return json.loads(response.content.decode("utf-8"))
|
| 42 |
|
| 43 |
output = query("pers.png")
|
| 44 |
+
st.write(len(output), output[0].shape)
|
| 45 |
"""
|
| 46 |
from transformers import SegformerFeatureExtractor, SegformerForSemanticSegmentation
|
| 47 |
from PIL import Image
|