skoneru commited on
Commit
a55bbd0
·
1 Parent(s): cfe3e07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -68,7 +68,7 @@ with open('description.md',mode='r',encoding='utf-8') as f:
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,7 +83,7 @@ iface = gr.Interface(
83
  ],
84
  title="Contextual Refinement of Translations: Integrating Manual Feedback",
85
  description=description,
86
- css = css
87
  )
88
 
89
  iface.launch(share=True)
 
68
  description = f.readlines()
69
  description = "\n".join(description)
70
 
71
+ css_code = "body {background-color: lightblue;}"
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_code
87
  )
88
 
89
  iface.launch(share=True)