Spaces:
Runtime error
Runtime error
gchhablani
commited on
Commit
•
0802e6e
1
Parent(s):
950c460
Update layout
Browse files- .gitignore +2 -3
- app.py +6 -0
- Multilingual IC.svg → misc/Multilingual IC.svg +0 -0
- mic-logo.png → misc/mic-logo.png +0 -0
- model/flax_clip_vision_mbart/__pycache__/__init__.cpython-38.pyc +0 -0
- model/flax_clip_vision_mbart/__pycache__/configuration_clip_vision_mbart.cpython-38.pyc +0 -0
- model/flax_clip_vision_mbart/__pycache__/generation_clip_vision_utils.cpython-38.pyc +0 -0
- model/flax_clip_vision_mbart/__pycache__/modeling_clip_vision_mbart.cpython-38.pyc +0 -0
- model/flax_clip_vision_mbart/__pycache__/modeling_clip_vision_utils.cpython-38.pyc +0 -0
- sections/intro.md +0 -0
.gitignore
CHANGED
@@ -1,3 +1,2 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
*.pyc
|
|
|
1 |
+
mic_env/*
|
2 |
+
*.pyc
|
|
app.py
CHANGED
@@ -63,6 +63,7 @@ st.set_page_config(
|
|
63 |
page_title="Multilingual Image Captioning",
|
64 |
layout="wide",
|
65 |
initial_sidebar_state="collapsed",
|
|
|
66 |
)
|
67 |
|
68 |
st.title("Multilingual Image Captioning")
|
@@ -75,6 +76,11 @@ num_beams = st.sidebar.number_input(label="Number of Beams", min_value=2, max_va
|
|
75 |
temperature = st.sidebar.select_slider(label="Temperature", options = np.arange(0.0,1.1, step=0.1), value=1.0, help ="The value used to module the next token probabilities.", format_func=lambda x: f"{x:.2f}")
|
76 |
top_p = st.sidebar.select_slider(label = "Top-P", options = np.arange(0.0,1.1, step=0.1),value=1.0, help="Nucleus Sampling : If set to float < 1, only the most probable tokens with probabilities that add up to :obj:`top_p` or higher are kept for generation.", format_func=lambda x: f"{x:.2f}")
|
77 |
|
|
|
|
|
|
|
|
|
|
|
78 |
with st.beta_expander("Usage"):
|
79 |
st.markdown(read_markdown("usage.md"))
|
80 |
|
|
|
63 |
page_title="Multilingual Image Captioning",
|
64 |
layout="wide",
|
65 |
initial_sidebar_state="collapsed",
|
66 |
+
page_icon="./misc/mic-logo.png",
|
67 |
)
|
68 |
|
69 |
st.title("Multilingual Image Captioning")
|
|
|
76 |
temperature = st.sidebar.select_slider(label="Temperature", options = np.arange(0.0,1.1, step=0.1), value=1.0, help ="The value used to module the next token probabilities.", format_func=lambda x: f"{x:.2f}")
|
77 |
top_p = st.sidebar.select_slider(label = "Top-P", options = np.arange(0.0,1.1, step=0.1),value=1.0, help="Nucleus Sampling : If set to float < 1, only the most probable tokens with probabilities that add up to :obj:`top_p` or higher are kept for generation.", format_func=lambda x: f"{x:.2f}")
|
78 |
|
79 |
+
|
80 |
+
image_col, intro_col = st.beta_columns([3, 8])
|
81 |
+
image_col.image("./misc/mic-logo.png", use_column_width="always")
|
82 |
+
intro_col.write(read_markdown("intro.md"))
|
83 |
+
|
84 |
with st.beta_expander("Usage"):
|
85 |
st.markdown(read_markdown("usage.md"))
|
86 |
|
Multilingual IC.svg → misc/Multilingual IC.svg
RENAMED
File without changes
|
mic-logo.png → misc/mic-logo.png
RENAMED
File without changes
|
model/flax_clip_vision_mbart/__pycache__/__init__.cpython-38.pyc
DELETED
Binary file (184 Bytes)
|
|
model/flax_clip_vision_mbart/__pycache__/configuration_clip_vision_mbart.cpython-38.pyc
DELETED
Binary file (1.7 kB)
|
|
model/flax_clip_vision_mbart/__pycache__/generation_clip_vision_utils.cpython-38.pyc
DELETED
Binary file (21.8 kB)
|
|
model/flax_clip_vision_mbart/__pycache__/modeling_clip_vision_mbart.cpython-38.pyc
DELETED
Binary file (15.5 kB)
|
|
model/flax_clip_vision_mbart/__pycache__/modeling_clip_vision_utils.cpython-38.pyc
DELETED
Binary file (16.6 kB)
|
|
sections/intro.md
ADDED
File without changes
|