Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ with open('description.md',mode='r',encoding='utf-8') as f:
|
|
| 71 |
css_code = ".gradio-container {background: url('file=background.jpeg');}"
|
| 72 |
iface = gr.Interface(
|
| 73 |
fn=translate,
|
| 74 |
-
inputs=[gr.Textbox(lines=2, placeholder="Enter your English
|
| 75 |
outputs=gr.Textbox(lines=2,placeholder="Enter your inputs and click submit!",label="Automatic Post-Edited German Translation"),
|
| 76 |
examples=[
|
| 77 |
example_term_false,
|
|
@@ -83,6 +83,7 @@ iface = gr.Interface(
|
|
| 83 |
],
|
| 84 |
title="Contextual Refinement of Translations: Integrating Manual Feedback",
|
| 85 |
description=description,
|
|
|
|
| 86 |
)
|
| 87 |
|
| 88 |
iface.launch(share=True)
|
|
|
|
| 71 |
css_code = ".gradio-container {background: url('file=background.jpeg');}"
|
| 72 |
iface = gr.Interface(
|
| 73 |
fn=translate,
|
| 74 |
+
inputs=[gr.Textbox(lines=2, placeholder="Enter your English Sentences that you want to translate", label="English Sentences"), gr.Textbox(lines=2, placeholder="Enter your sentence-level German Tranlations that you want to post-edit using Llama2",label="Sentence-Level German Translations"),gr.Textbox(lines=2, placeholder="Enter your partially corrected translation and the model will continue from there - Can be left empty or generate the output once and correct it later :)", label="Manual Post-Edited German Translation")],
|
| 75 |
outputs=gr.Textbox(lines=2,placeholder="Enter your inputs and click submit!",label="Automatic Post-Edited German Translation"),
|
| 76 |
examples=[
|
| 77 |
example_term_false,
|
|
|
|
| 83 |
],
|
| 84 |
title="Contextual Refinement of Translations: Integrating Manual Feedback",
|
| 85 |
description=description,
|
| 86 |
+
css=css_code
|
| 87 |
)
|
| 88 |
|
| 89 |
iface.launch(share=True)
|