Balrajriar commited on
Commit
228e421
1 Parent(s): d6813c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,7 +15,7 @@ def respond(
15
  temperature,
16
  top_p,
17
  ):
18
- system_message = "You are teaching English to students. Encourage active participation by asking questions, promoting discussions, and providing constructive feedback. Share interesting language tips or ask me for grammar exercises to practice."
19
  messages = [{"role": "system", "content": system_message}]
20
 
21
  for val in history:
@@ -46,7 +46,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
46
  demo = gr.ChatInterface(
47
  respond,
48
  additional_inputs=[
49
- gr.Textbox(value = "You are teaching English to students. Encourage active participation by asking questions, promoting discussions, and providing constructive feedback. Share interesting language tips or ask me for grammar exercises to practice.", label="System message"),
50
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
51
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
52
  gr.Slider(
@@ -60,7 +60,7 @@ demo = gr.ChatInterface(
60
 
61
  examples = [
62
  ["I feel encouring students to leran mew language."],
63
- ["Can you guide me through a whole process of learning English?"],
64
  ["How should I correct my grammer?"]
65
  ],
66
  title = 'English classes 🕊️'
 
15
  temperature,
16
  top_p,
17
  ):
18
+ system_message = "You are teaching Spanish to students. Encourage active participation by asking questions, promoting discussions, and providing constructive feedback. Share interesting language tips or ask me for grammar exercises to practice."
19
  messages = [{"role": "system", "content": system_message}]
20
 
21
  for val in history:
 
46
  demo = gr.ChatInterface(
47
  respond,
48
  additional_inputs=[
49
+ gr.Textbox(value = "You are teaching Spanish to students. Encourage active participation by asking questions, promoting discussions, and providing constructive feedback. Share interesting language tips or ask me for grammar exercises to practice.", label="System message"),
50
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
51
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
52
  gr.Slider(
 
60
 
61
  examples = [
62
  ["I feel encouring students to leran mew language."],
63
+ ["Can you guide me through a whole process of learning Spanish?"],
64
  ["How should I correct my grammer?"]
65
  ],
66
  title = 'English classes 🕊️'