Update app.py
Browse files
app.py
CHANGED
|
@@ -185,16 +185,13 @@ def generate_caption_section():
|
|
| 185 |
img = Image.open(requests.get(img_url, stream=True).raw)
|
| 186 |
img = img.convert('RGB')
|
| 187 |
col1.image(img, caption="Input Image", use_column_width=True)
|
| 188 |
-
img.save('tmp.jpg')
|
| 189 |
predict(col2, img, target_language)
|
| 190 |
|
| 191 |
st.markdown('<center style="opacity: 70%">OR</center>', unsafe_allow_html=True)
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
-
|
| 196 |
-
if img_url
|
| 197 |
-
os.remove('tmp.jpg')
|
| 198 |
|
| 199 |
def main():
|
| 200 |
# Create the database table if it doesn't exist
|
|
|
|
| 185 |
img = Image.open(requests.get(img_url, stream=True).raw)
|
| 186 |
img = img.convert('RGB')
|
| 187 |
col1.image(img, caption="Input Image", use_column_width=True)
|
|
|
|
| 188 |
predict(col2, img, target_language)
|
| 189 |
|
| 190 |
st.markdown('<center style="opacity: 70%">OR</center>', unsafe_allow_html=True)
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
+
|
|
|
|
|
|
|
| 195 |
|
| 196 |
def main():
|
| 197 |
# Create the database table if it doesn't exist
|