Spaces:
Runtime error
Runtime error
Initial test
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ prefix= "<s>[INST] <<SYS>>\nYou are a professional translator from English to Ge
|
|
| 12 |
suffix = "\nGerman: "
|
| 13 |
iface = gr.Interface(
|
| 14 |
fn=translate,
|
| 15 |
-
inputs=[gr.Textbox(lines=1, placeholder="Enter your English Sentences that you want to translate", label="English Sentence"), gr.Textbox(lines=5, placeholder=prefix,label="Prefix for LLM Prompt - Change here to control"),gr.Textbox(lines=5, placeholder=suffix, label="DONT CHANGE!!"),gr.Slider(label='Select beam size',value=5,
|
| 16 |
outputs=gr.Textbox(lines=1,placeholder="Enter your inputs and click submit!",label="LLM Guided NLLB German Translation"),
|
| 17 |
title="Ensemble Decoding with NLLB 3.3B and LLama2 13B for Guided Decoding",
|
| 18 |
description=description,
|
|
|
|
| 12 |
suffix = "\nGerman: "
|
| 13 |
iface = gr.Interface(
|
| 14 |
fn=translate,
|
| 15 |
+
inputs=[gr.Textbox(lines=1, placeholder="Enter your English Sentences that you want to translate", label="English Sentence"), gr.Textbox(lines=5, placeholder=prefix,label="Prefix for LLM Prompt - Change here to control"),gr.Textbox(lines=5, placeholder=suffix, label="DONT CHANGE!!"),gr.Slider(label='Select beam size',value=5,minimum=1,maximum=5,step=1),gr.Slider(label="TopK for rescoring",value=5,minimum=5,maximum=10,step=1)],
|
| 16 |
outputs=gr.Textbox(lines=1,placeholder="Enter your inputs and click submit!",label="LLM Guided NLLB German Translation"),
|
| 17 |
title="Ensemble Decoding with NLLB 3.3B and LLama2 13B for Guided Decoding",
|
| 18 |
description=description,
|