Spaces:
Build error
Build error
wissamantoun
commited on
Commit
•
f34fa3a
1
Parent(s):
2de650e
ui fixes
Browse files- backend/aragpt.py +4 -8
- backend/home.py +1 -1
- backend/processor.py +1 -1
- backend/qa.py +1 -1
backend/aragpt.py
CHANGED
@@ -21,15 +21,11 @@ qa_prompt_post_year = """ في سنة: """
|
|
21 |
|
22 |
|
23 |
def write():
|
24 |
-
st.
|
25 |
-
"""
|
26 |
-
# Arabic Language Generation:
|
27 |
|
28 |
-
|
29 |
-
|
30 |
|
31 |
-
"""
|
32 |
-
)
|
33 |
# Sidebar
|
34 |
|
35 |
# Taken from https://huggingface.co/spaces/flax-community/spanish-gpt2/blob/main/app.py
|
@@ -98,7 +94,7 @@ def write():
|
|
98 |
|
99 |
st.write("#")
|
100 |
|
101 |
-
col = st.
|
102 |
|
103 |
col[0].image("images/AraGPT2.png", width=200)
|
104 |
|
|
|
21 |
|
22 |
|
23 |
def write():
|
24 |
+
_, col1, _ = st.columns(3)
|
|
|
|
|
25 |
|
26 |
+
with col1:
|
27 |
+
col1.title("Arabic Language Generation")
|
28 |
|
|
|
|
|
29 |
# Sidebar
|
30 |
|
31 |
# Taken from https://huggingface.co/spaces/flax-community/spanish-gpt2/blob/main/app.py
|
|
|
94 |
|
95 |
st.write("#")
|
96 |
|
97 |
+
col = st.columns(2)
|
98 |
|
99 |
col[0].image("images/AraGPT2.png", width=200)
|
100 |
|
backend/home.py
CHANGED
@@ -19,7 +19,7 @@ def write():
|
|
19 |
"""
|
20 |
)
|
21 |
st.markdown("#")
|
22 |
-
col1, col2, col3 = st.
|
23 |
|
24 |
col1.write("## **AraBERT**")
|
25 |
col1.image("images/arabert_logo.png", width=200)
|
|
|
19 |
"""
|
20 |
)
|
21 |
st.markdown("#")
|
22 |
+
col1, col2, col3 = st.columns(3)
|
23 |
|
24 |
col1.write("## **AraBERT**")
|
25 |
col1.image("images/arabert_logo.png", width=200)
|
backend/processor.py
CHANGED
@@ -101,7 +101,7 @@ def _desegmentword(orig_word: str) -> str:
|
|
101 |
|
102 |
|
103 |
def write():
|
104 |
-
_, col1, _ = st.
|
105 |
|
106 |
with col1:
|
107 |
col1.title("Arabic Text Pre-Processor")
|
|
|
101 |
|
102 |
|
103 |
def write():
|
104 |
+
_, col1, _ = st.columns(3)
|
105 |
|
106 |
with col1:
|
107 |
col1.title("Arabic Text Pre-Processor")
|
backend/qa.py
CHANGED
@@ -5,7 +5,7 @@ from .services import get_qa_answers
|
|
5 |
|
6 |
|
7 |
def write():
|
8 |
-
_, col1, _ = st.
|
9 |
|
10 |
with col1:
|
11 |
st.image("images/is2alni_logo.png", width=200)
|
|
|
5 |
|
6 |
|
7 |
def write():
|
8 |
+
_, col1, _ = st.columns(3)
|
9 |
|
10 |
with col1:
|
11 |
st.image("images/is2alni_logo.png", width=200)
|