QL2023 commited on
Commit
78d0ddd
·
verified ·
1 Parent(s): e8a6109

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -12
app.py CHANGED
@@ -80,13 +80,8 @@ with gr.Blocks(title=title) as demo:
80
  type="value"
81
  )
82
  with gr.Row():
83
- pre_fail = gr.Slider(0, 10, value=0, step=1, label="Previous Fail (This Course)", info="Choose between 0 and 10")
84
- with gr.Row():
85
- this_fail = gr.Number(label="Previous Fail (All Courses)",
86
- info="Numerical value only, 0-10",
87
- value=10,
88
- step = 1
89
- )
90
  with gr.Column():
91
  ini_prompt = gr.Textbox(label="initial prompt",
92
  info="Initial prompt",
@@ -101,11 +96,7 @@ with gr.Blocks(title=title) as demo:
101
  lines=15,
102
  value=" ")
103
  with gr.Row():
104
- temperature = gr.Number(label="LLM temperature",
105
- info="Numerical value only, 0-2",
106
- value=1,
107
- step = 0.1
108
- )
109
  prompt_button = gr.Button("Generate Revised Prompt")
110
  with gr.Column():
111
  genai_text = gr.Textbox(
 
80
  type="value"
81
  )
82
  with gr.Row():
83
+ pre_fail = gr.Slider(0, 10, value=0, step=1, label="Previous Fail (All Course)", info="Choose between 0 and 10")
84
+ this_fail = gr.Slider(0, 10, value=0, step=1, label="Previous Fail (This Course)", info="Choose between 0 and 10")
 
 
 
 
 
85
  with gr.Column():
86
  ini_prompt = gr.Textbox(label="initial prompt",
87
  info="Initial prompt",
 
96
  lines=15,
97
  value=" ")
98
  with gr.Row():
99
+ temperature = gr.Slider(0, 2, value=0.5, step=0.1, label="LLM temperature", info="Choose between 0 and 2")
 
 
 
 
100
  prompt_button = gr.Button("Generate Revised Prompt")
101
  with gr.Column():
102
  genai_text = gr.Textbox(