aixsatoshi commited on
Commit
545b45b
·
verified ·
1 Parent(s): fbf73fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -71,6 +71,12 @@ demo = gr.ChatInterface(
71
  fn=predict,
72
  title="Honyaku-7b webui",
73
  description="Translate using Honyaku-7b model",
 
 
 
 
 
 
74
  additional_inputs=[
75
  gr.Slider(100, 4096, value=1000, label="Tokens"),
76
  gr.Slider(0.0, 1.0, value=0.3, label="Temperature"),
 
71
  fn=predict,
72
  title="Honyaku-7b webui",
73
  description="Translate using Honyaku-7b model",
74
+ chatbot=gr.Chatbot(height=512),
75
+ textbox=gr.Textbox(lines=10,placeholder="Please enter the English text you want to translate. We will translate entire paragraphs of around 500 tokens. By looking at the whole text, we adapt the translation style according to the context. We do not support short sentences.", container=False, scale=7),
76
+ theme="soft",
77
+ retry_btn=None,
78
+ undo_btn="Delete Previous",
79
+ clear_btn="Clear",
80
  additional_inputs=[
81
  gr.Slider(100, 4096, value=1000, label="Tokens"),
82
  gr.Slider(0.0, 1.0, value=0.3, label="Temperature"),