Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,7 +93,7 @@ CSS = """
|
|
| 93 |
"""
|
| 94 |
|
| 95 |
LICENSE = """
|
| 96 |
-
MODEL: <a href="https://huggingface.co/LLaMAX/LLaMAX3-8B-Alpaca">LLaMAX3-8B-Alpaca</a>
|
| 97 |
"""
|
| 98 |
|
| 99 |
LANG_LIST = ['Akrikaans', 'Amharic', 'Arabic', 'Armenian', 'Assamese', 'Asturian', 'Azerbaijani', \
|
|
@@ -163,14 +163,16 @@ with gr.Blocks(theme="soft", css=CSS) as demo:
|
|
| 163 |
gr.Markdown(LICENSE)
|
| 164 |
inst = gr.Textbox(
|
| 165 |
label="Instruction",
|
| 166 |
-
value="Translate the following sentences from {src_language} to {trg_language}."
|
|
|
|
| 167 |
)
|
| 168 |
prompt = gr.Textbox(
|
| 169 |
label="Prompt",
|
| 170 |
value="""
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
"""
|
|
|
|
| 174 |
)
|
| 175 |
|
| 176 |
with gr.Column(scale=4):
|
|
|
|
| 93 |
"""
|
| 94 |
|
| 95 |
LICENSE = """
|
| 96 |
+
<center>MODEL: <a href="https://huggingface.co/LLaMAX/LLaMAX3-8B-Alpaca">LLaMAX3-8B-Alpaca</a></center>
|
| 97 |
"""
|
| 98 |
|
| 99 |
LANG_LIST = ['Akrikaans', 'Amharic', 'Arabic', 'Armenian', 'Assamese', 'Asturian', 'Azerbaijani', \
|
|
|
|
| 163 |
gr.Markdown(LICENSE)
|
| 164 |
inst = gr.Textbox(
|
| 165 |
label="Instruction",
|
| 166 |
+
value="Translate the following sentences from {src_language} to {trg_language}.",
|
| 167 |
+
lines=3,
|
| 168 |
)
|
| 169 |
prompt = gr.Textbox(
|
| 170 |
label="Prompt",
|
| 171 |
value="""
|
| 172 |
+
'Below is an instruction that describes a task, paired with an input that provides further context. '
|
| 173 |
+
'Write a response that appropriately completes the request.\n'
|
| 174 |
+
""",
|
| 175 |
+
lines=8,
|
| 176 |
)
|
| 177 |
|
| 178 |
with gr.Column(scale=4):
|