Migu3low commited on
Commit
dea1681
·
verified ·
1 Parent(s): ef8c841

Fix Indentation

Browse files
Files changed (1) hide show
  1. app.py +20 -12
app.py CHANGED
@@ -45,24 +45,32 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
45
  with gr.Blocks() as demo:
46
  gr.Markdown("Used two ChatBots for testing and comparison of correct answers:")
47
  with gr.Row() as row:
48
- system_prompt = gr.Textbox("You are helpful AI.", label="System Prompt")
49
- slider_1 = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
50
- slider_2 = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature")
51
- slider_3 = gr.Slider(
52
- minimum=0.1,
53
- maximum=1.0,
54
- value=0.95,
55
- step=0.05,
56
- label="Top-p (nucleus sampling)",
57
- )
58
  with gr.Column():
59
-
 
 
 
 
 
 
 
 
 
60
  gr.ChatInterface(
61
  respond, additional_inputs=[system_prompt, slider_1, slider_2, slider_3]
62
  )
63
 
64
  with gr.Column():
65
-
 
 
 
 
 
 
 
 
66
  gr.ChatInterface(
67
  respond, additional_inputs=[system_prompt, slider_1, slider_2, slider_3]
68
  )
 
45
  with gr.Blocks() as demo:
46
  gr.Markdown("Used two ChatBots for testing and comparison of correct answers:")
47
  with gr.Row() as row:
48
+
 
 
 
 
 
 
 
 
 
49
  with gr.Column():
50
+ system_prompt = gr.Textbox("You are helpful AI.", label="System Prompt")
51
+ slider_1 = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
52
+ slider_2 = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature")
53
+ slider_3 = gr.Slider(
54
+ minimum=0.1,
55
+ maximum=1.0,
56
+ value=0.95,
57
+ step=0.05,
58
+ label="Top-p (nucleus sampling)",
59
+ )
60
  gr.ChatInterface(
61
  respond, additional_inputs=[system_prompt, slider_1, slider_2, slider_3]
62
  )
63
 
64
  with gr.Column():
65
+ slider_1 = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
66
+ slider_2 = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature")
67
+ slider_3 = gr.Slider(
68
+ minimum=0.1,
69
+ maximum=1.0,
70
+ value=0.95,
71
+ step=0.05,
72
+ label="Top-p (nucleus sampling)",
73
+ )
74
  gr.ChatInterface(
75
  respond, additional_inputs=[system_prompt, slider_1, slider_2, slider_3]
76
  )