Commit ·
b613b7a
1
Parent(s): aad330b
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,9 +34,12 @@ def launch(inputs):
|
|
| 34 |
st.image(img)
|
| 35 |
img.save('tmp.jpg')
|
| 36 |
o=predict()
|
|
|
|
|
|
|
|
|
|
| 37 |
os.remove('tmp.jpg')
|
| 38 |
-
return
|
| 39 |
-
iface = gr.Interface(launch, inputs="text", outputs=
|
| 40 |
iface.launch(debug=True)
|
| 41 |
|
| 42 |
'''st.title('Image Captioner')
|
|
|
|
| 34 |
st.image(img)
|
| 35 |
img.save('tmp.jpg')
|
| 36 |
o=predict()
|
| 37 |
+
str1=""
|
| 38 |
+
for ele in o:
|
| 39 |
+
str1 += "\n"+ele
|
| 40 |
os.remove('tmp.jpg')
|
| 41 |
+
return str1
|
| 42 |
+
iface = gr.Interface(launch, inputs="text", outputs="text")
|
| 43 |
iface.launch(debug=True)
|
| 44 |
|
| 45 |
'''st.title('Image Captioner')
|