AjayP13 commited on
Commit
0e2bdcc
·
verified ·
1 Parent(s): 5727bd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,12 +28,12 @@ with gr.Blocks(theme="ParityError/[email protected]") as demo:
28
  gr.Markdown("Style transfer the source text into the target style, given some example texts of the target style. You can adjust re-ranking and top_p to your desire to control the quality of style transfer. A higher re-ranking value will generally result in better results, at slower speed.")
29
 
30
  text1 = gr.Textbox(lines=3, placeholder="Enter the source text to transform into the target style...", label="Source Text")
31
- text2 = gr.Textbox(lines=5, placeholder="Enter example texts of the target style (one per line)...", label="Examples of Target Style")
32
  reranking = gr.Slider(1, 10, value=5, step=1, label="Re-ranking")
33
  temperature = gr.Slider(0.0, 2.0, value=1.0, step=0.1, label="Temperature")
34
  top_p = gr.Slider(0.0, 1.0, value=1.0, step=0.1, label="Top-P")
35
 
36
- output = gr.Textbox()
37
 
38
  btn = gr.Button("Generate")
39
  btn.click(concatenate_and_generate, [text1, text2, reranking, temperature, top_p], output)
 
28
  gr.Markdown("Style transfer the source text into the target style, given some example texts of the target style. You can adjust re-ranking and top_p to your desire to control the quality of style transfer. A higher re-ranking value will generally result in better results, at slower speed.")
29
 
30
  text1 = gr.Textbox(lines=3, placeholder="Enter the source text to transform into the target style...", label="Source Text")
31
+ text2 = gr.Textbox(lines=5, placeholder="Enter example texts of the target style (one per line)...", label="Example Texts of the Target Style")
32
  reranking = gr.Slider(1, 10, value=5, step=1, label="Re-ranking")
33
  temperature = gr.Slider(0.0, 2.0, value=1.0, step=0.1, label="Temperature")
34
  top_p = gr.Slider(0.0, 1.0, value=1.0, step=0.1, label="Top-P")
35
 
36
+ output = gr.Markdown()
37
 
38
  btn = gr.Button("Generate")
39
  btn.click(concatenate_and_generate, [text1, text2, reranking, temperature, top_p], output)