Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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(
|