Spaces:
Runtime error
Runtime error
ydshieh
commited on
Commit
•
374fa3e
1
Parent(s):
0bb133b
add author
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ import numpy as np
|
|
4 |
|
5 |
|
6 |
# Designing the interface
|
7 |
-
st.title("🖼️ French Image Caption
|
|
|
8 |
|
9 |
st.sidebar.markdown(
|
10 |
"""
|
@@ -51,6 +52,6 @@ with st.spinner('Generating image caption ...'):
|
|
51 |
|
52 |
st.sidebar.header("ViT-GPT2 predicts:")
|
53 |
st.sidebar.write(f"**French**: {caption}")
|
54 |
-
st.sidebar.write(f"**English**: {caption_en}")
|
55 |
|
56 |
image.close()
|
|
|
4 |
|
5 |
|
6 |
# Designing the interface
|
7 |
+
st.title("🖼️ French Image Caption Demo")
|
8 |
+
st.write("[Yih-Dar SHIEH](https://huggingface.co/ydshieh)")
|
9 |
|
10 |
st.sidebar.markdown(
|
11 |
"""
|
|
|
52 |
|
53 |
st.sidebar.header("ViT-GPT2 predicts:")
|
54 |
st.sidebar.write(f"**French**: {caption}")
|
55 |
+
st.sidebar.write(f"**English Translation**: {caption_en}")
|
56 |
|
57 |
image.close()
|