youngtsai commited on
Commit
0e5dd94
·
1 Parent(s): 8a473de

default_generate_points_prompt = """

Browse files
Files changed (1) hide show
  1. app.py +14 -4
app.py CHANGED
@@ -64,19 +64,29 @@ with gr.Blocks() as demo:
64
  with gr.Column():
65
  # basic inputs
66
  gr.Markdown("## Basic Inputs")
67
- model = gr.Radio(["gpt-4-1106-preview", "gpt-3.5-turbo"], label="Model")
68
  max_tokens = gr.Slider(minimum=50, maximum=4000, value=1000, label="Max Tokens")
69
  sys_content_input = gr.Textbox(label="System Prompt", value="You are an English teacher who is practicing with me to improve my English writing skill.")
70
  scenario_input = gr.Textbox(label="Scenario")
71
- eng_level_input = gr.Radio(["beginner", "intermediate", "advanced"], label="English Level")
72
 
73
  gr.Markdown("## Generate Topic Sentences")
74
- user_generate_topics_prompt = gr.Textbox(label="Topics Prompt", value="Give me 10 topics relevant to Scenario, for a paragraph. Just the topics, no explanation, use simple English language. Make sure the vocabulary you use is at english level.")
 
 
 
 
 
75
  generate_topics_button = gr.Button("Generate Topic Sentences")
76
 
77
  gr.Markdown("## Generate Points")
78
  topic_input = gr.Textbox(label="Topic")
79
- user_generate_points_prompt = gr.Textbox(label="Points Prompt", value=" please provide main points to develop in a paragraph about topic in the context of scenario, use simple English language and make sure the vocabulary you use is at eng_level.")
 
 
 
 
 
80
  generate_points_button = gr.Button("Generate Points")
81
 
82
 
 
64
  with gr.Column():
65
  # basic inputs
66
  gr.Markdown("## Basic Inputs")
67
+ model = gr.Radio(["gpt-4-1106-preview", "gpt-3.5-turbo"], label="Model", value="gpt-4-1106-preview")
68
  max_tokens = gr.Slider(minimum=50, maximum=4000, value=1000, label="Max Tokens")
69
  sys_content_input = gr.Textbox(label="System Prompt", value="You are an English teacher who is practicing with me to improve my English writing skill.")
70
  scenario_input = gr.Textbox(label="Scenario")
71
+ eng_level_input = gr.Radio(["beginner", "intermediate", "advanced"], label="English Level", value="beginner")
72
 
73
  gr.Markdown("## Generate Topic Sentences")
74
+ default_generate_topics_prompt = """
75
+ Give me 10 topics relevant to Scenario,
76
+ for a paragraph. Just the topics, no explanation, use simple English language.
77
+ Make sure the vocabulary you use is at english level.
78
+ """
79
+ user_generate_topics_prompt = gr.Textbox(label="Topics Prompt", value=default_generate_topics_prompt)
80
  generate_topics_button = gr.Button("Generate Topic Sentences")
81
 
82
  gr.Markdown("## Generate Points")
83
  topic_input = gr.Textbox(label="Topic")
84
+ default_generate_points_prompt = """
85
+ Please provide main points to develop in a paragraph about topic in the context of scenario,
86
+ use simple English language and make sure the vocabulary you use is at eng_level.
87
+ No more explanation either no developing these points into a simple paragraph.
88
+ """
89
+ user_generate_points_prompt = gr.Textbox(label="Points Prompt", value=default_generate_points_prompt)
90
  generate_points_button = gr.Button("Generate Points")
91
 
92