Spaces:
Running
Running
BeardedMonster
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -48,17 +48,17 @@ st.sidebar.write("""
|
|
48 |
- Don't select a sample text if using your own text.
|
49 |
|
50 |
4. **Select Nigerian Language:**
|
51 |
-
- If prompted, choose the Nigerian language (base for diacritization/cleaning, target for translation).
|
52 |
|
53 |
5. **Generate Output:**
|
54 |
- Click the Generate button.
|
55 |
|
56 |
6. **Translation Tips:**
|
57 |
-
- English as the target language gives the best results.
|
58 |
|
59 |
7. **Performance Note:**
|
60 |
- The model's performance varies due to its size and training data. It performs best on text generation and translation.
|
61 |
-
- For other tasks, try multiple times due to sampling.
|
62 |
|
63 |
8. **Adjust Parameters:**
|
64 |
- Experiment with the generation parameters to improve performance.
|
@@ -99,9 +99,9 @@ generation_config = {
|
|
99 |
# Streamlit app
|
100 |
st.title("SabiYarn-125M : Generates text in multiple Nigerian languages.")
|
101 |
|
102 |
-
st.write("**Supported Languages: English, Yoruba, Igbo, Hausa, Pidgin, Efik, Urhobo, Fulfulde, Fulah. \nResults
|
103 |
Urhobo, Fulfulde, Fulah).**")
|
104 |
-
st.write("**It
|
105 |
st.write("**For convenience, you can use chatgpt to copy text and evaluate model output.**")
|
106 |
st.write("-" * 50)
|
107 |
|
@@ -214,7 +214,6 @@ def wrap_text(text, task_value):
|
|
214 |
return text
|
215 |
return task_value.format(text)
|
216 |
|
217 |
-
|
218 |
# Text input
|
219 |
user_input = st.text_area("Enter text below **(PLEASE, FIRST READ ALL INSTRUCTIONS IN THE SIDEBAR CAREFULLY FOR THE BEST EXPERIENCE)**: ", sample_texts[sample_text])
|
220 |
user_input = instruction_wrap.get(sample_texts.get(user_input, user_input), user_input)
|
|
|
48 |
- Don't select a sample text if using your own text.
|
49 |
|
50 |
4. **Select Nigerian Language:**
|
51 |
+
- If prompted, choose the Nigerian language (it represents the input/base language for diacritization/cleaning, target language for translation).
|
52 |
|
53 |
5. **Generate Output:**
|
54 |
- Click the Generate button.
|
55 |
|
56 |
6. **Translation Tips:**
|
57 |
+
- English as the target language gives the best results.
|
58 |
|
59 |
7. **Performance Note:**
|
60 |
- The model's performance varies due to its size and training data. It performs best on text generation and translation.
|
61 |
+
- For other tasks, try multiple times due to the generator's sampling parameter settings.
|
62 |
|
63 |
8. **Adjust Parameters:**
|
64 |
- Experiment with the generation parameters to improve performance.
|
|
|
99 |
# Streamlit app
|
100 |
st.title("SabiYarn-125M : Generates text in multiple Nigerian languages.")
|
101 |
|
102 |
+
st.write("**Supported Languages: English, Yoruba, Igbo, Hausa, Pidgin, Efik, Urhobo, Fulfulde, Fulah. \nResults may not be coherent for less represented languages (i.e Efik, \
|
103 |
Urhobo, Fulfulde, Fulah).**")
|
104 |
+
st.write("**It may take a while (~25s) to return an output on the first 'generate' click.**")
|
105 |
st.write("**For convenience, you can use chatgpt to copy text and evaluate model output.**")
|
106 |
st.write("-" * 50)
|
107 |
|
|
|
214 |
return text
|
215 |
return task_value.format(text)
|
216 |
|
|
|
217 |
# Text input
|
218 |
user_input = st.text_area("Enter text below **(PLEASE, FIRST READ ALL INSTRUCTIONS IN THE SIDEBAR CAREFULLY FOR THE BEST EXPERIENCE)**: ", sample_texts[sample_text])
|
219 |
user_input = instruction_wrap.get(sample_texts.get(user_input, user_input), user_input)
|