skoneru commited on
Commit
cfe3e07
·
1 Parent(s): 52e8adf
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -68,6 +68,7 @@ with open('description.md',mode='r',encoding='utf-8') as f:
68
  description = f.readlines()
69
  description = "\n".join(description)
70
 
 
71
  iface = gr.Interface(
72
  fn=translate,
73
  inputs=[gr.Textbox(lines=2, placeholder="Enter your English Senteces 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")],
@@ -82,6 +83,7 @@ iface = gr.Interface(
82
  ],
83
  title="Contextual Refinement of Translations: Integrating Manual Feedback",
84
  description=description,
 
85
  )
86
 
87
  iface.launch(share=True)
 
68
  description = f.readlines()
69
  description = "\n".join(description)
70
 
71
+ css = "body {background-image: url(r'https://pbs.twimg.com/profile_images/1641793512311083012/5GthVviF_400x400.jpg');}"
72
  iface = gr.Interface(
73
  fn=translate,
74
  inputs=[gr.Textbox(lines=2, placeholder="Enter your English Senteces 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")],
 
83
  ],
84
  title="Contextual Refinement of Translations: Integrating Manual Feedback",
85
  description=description,
86
+ css = css
87
  )
88
 
89
  iface.launch(share=True)