yonikremer commited on
Commit
0e07a66
1 Parent(s): 1fac618

added a default prompt for testing

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,13 +10,10 @@ from torch.cuda import CudaError
10
  from hanlde_form_submit import on_form_submit
11
  from on_server_start import main as on_server_start_main
12
 
13
-
14
  on_server_start_main()
15
 
16
-
17
  st.title("Grouped Sampling Demo")
18
 
19
-
20
  with st.form("request_form"):
21
  selected_model_name: str = st.text_input(
22
  label="Model name",
@@ -37,6 +34,9 @@ with st.form("request_form"):
37
  submitted_prompt: str = st.text_area(
38
  label="Input for the model, It is highly recommended to write an English prompt.",
39
  help="Enter the prompt for the model. The model will generate a response based on this prompt.",
 
 
 
40
  max_chars=2048,
41
  )
42
 
 
10
  from hanlde_form_submit import on_form_submit
11
  from on_server_start import main as on_server_start_main
12
 
 
13
  on_server_start_main()
14
 
 
15
  st.title("Grouped Sampling Demo")
16
 
 
17
  with st.form("request_form"):
18
  selected_model_name: str = st.text_input(
19
  label="Model name",
 
34
  submitted_prompt: str = st.text_area(
35
  label="Input for the model, It is highly recommended to write an English prompt.",
36
  help="Enter the prompt for the model. The model will generate a response based on this prompt.",
37
+ value="Instruction: Answer in yes or no.\n"
38
+ "Question: Is this a prompt?\n"
39
+ "Answer: ",
40
  max_chars=2048,
41
  )
42