prsingh1982 commited on
Commit
49eff6e
·
verified ·
1 Parent(s): 2c1d11a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -46,7 +46,12 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
46
  demo = gr.ChatInterface(
47
  respond,
48
  additional_inputs=[
49
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
 
 
 
 
 
50
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
51
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
52
  gr.Slider(
 
46
  demo = gr.ChatInterface(
47
  respond,
48
  additional_inputs=[
49
+ gr.Textbox(value=f"""Translate the user input from English to Hebrew.
50
+ If the english text contains multiple consecutive special characters, replace them with a
51
+ corresponding single special character for translation. Once the text is translated, restore the original group of special
52
+ characters in their corresponding place.
53
+ For example, if the english text is 'Aahh!!', replace it with 'Aahh!' before translation.
54
+ After translation, replace the !! in the correct place in the hebrew text, אוי!!""", label="System message"),
55
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
56
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
57
  gr.Slider(