nugentc commited on
Commit
5a4fdf8
·
1 Parent(s): c556324

add title, description etc

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -34,6 +34,15 @@ def feedback(text):
34
  feedback = f'\'{corrected_text}\' might be a little better'
35
  return feedback
36
 
 
 
 
 
 
 
 
 
 
37
  iface = gr.Interface(
38
  chat,
39
  [gr.Textbox(label="Send messages here"), "state"],
@@ -43,5 +52,8 @@ iface = gr.Interface(
43
  )],
44
  allow_screenshot=False,
45
  allow_flagging="never",
46
- )
 
 
 
47
  iface.launch()
 
34
  feedback = f'\'{corrected_text}\' might be a little better'
35
  return feedback
36
 
37
+
38
+ title = "A chatbot that provides grammar feedback"
39
+ description = "A quick proof of concept using Gradio"
40
+ article = "<p style='text-align: center'><a href='https://docs.google.com/presentation/d/11fiO91MKZVgNoQJh5pn3Tw8-inHe6XbWYB2r1f701WI/edit?usp=sharing'> A conversational agent for Language learning</a> | <a href='https://github.com/ConorNugent/gradio-chatbot-demo'>Github Repo</a></p>"
41
+ examples = [
42
+ ["Hi, how are you?"],
43
+ ["How far away is the moon?"],
44
+ ]
45
+
46
  iface = gr.Interface(
47
  chat,
48
  [gr.Textbox(label="Send messages here"), "state"],
 
52
  )],
53
  allow_screenshot=False,
54
  allow_flagging="never",
55
+ title=title,
56
+ description=description,
57
+ article=article,
58
+ examples=examples)
59
  iface.launch()