nehalelkaref commited on
Commit
07da885
1 Parent(s): d13fd72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -7,7 +7,7 @@ client = OpenAI(api_key=key)
7
 
8
  class english_buddy:
9
  def __init__(self):
10
- system_message = "Your name is Tom and I'm practising English with you. Converse with me and advise me if my grammar is wrong"
11
  self.messages = []
12
  self.messages.append({'role':'system','content':system_message})
13
 
@@ -23,9 +23,8 @@ class english_buddy:
23
 
24
  my_english_buddy = english_buddy()
25
 
26
- # user_examples = gr.Examples(["Hey Tom! Mind if I practise my English with you?"], inputs="text")
27
  iface = gr.Interface(fn=my_english_buddy, inputs="textbox", outputs="text",
28
  clear_btn="Clear", theme="gradio/monochrome",
29
  title="Input Message to ChatGPT3.5 and start practising your English!",)
30
- # examples=user_examples)
31
  iface.launch(show_api=False)
 
7
 
8
  class english_buddy:
9
  def __init__(self):
10
+ system_message = "Your name is Tom and I'm practising English with you. Be friendly, converse with me and advise me if my grammar is wrong"
11
  self.messages = []
12
  self.messages.append({'role':'system','content':system_message})
13
 
 
23
 
24
  my_english_buddy = english_buddy()
25
 
 
26
  iface = gr.Interface(fn=my_english_buddy, inputs="textbox", outputs="text",
27
  clear_btn="Clear", theme="gradio/monochrome",
28
  title="Input Message to ChatGPT3.5 and start practising your English!",)
29
+
30
  iface.launch(show_api=False)