1hangzhao commited on
Commit
faddfab
·
verified ·
1 Parent(s): fcad20e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -37,7 +37,7 @@ with gr.Blocks() as user_story_interface:
37
  user_story_chatbot = gr.Chatbot(
38
  value=[
39
  {"role": "assistant", "content": (
40
- "Hello! I'm OntoChat, your trusted assistant for creating an ontology user story. Here's how I can assist you: \n\n1. I'll guide you through a sequence of questions, and you can use the provided prompt templates to craft your answers. \n\n2. You're welcome to share comments on my responses, and I'll refine them based on your feedback to ensure continuous improvement. 😊\n\nLet's get started! Could you tell me a little about the purpose of this ontology?"
41
  )}
42
  ],
43
  height="472px",
@@ -46,14 +46,15 @@ with gr.Blocks() as user_story_interface:
46
  user_story_input = gr.Textbox(
47
  label="Message OntoChat",
48
  placeholder="Please type your message here and press Shift + Enter to interact with the chatbot:",
49
- max_lines=4,
50
- lines = 4
51
  )
52
  elicitation_questions_dataset = gr.Dataset(
53
  components=[user_story_input],
54
  label="Prompt Templates",
55
  type="index",
56
  samples=[
 
57
  ["Create Persona"],
58
  ["Create User Goal"],
59
  ["Create Actions"],
 
37
  user_story_chatbot = gr.Chatbot(
38
  value=[
39
  {"role": "assistant", "content": (
40
+ "Hello! I'm OntoChat 😊. I'll help you create an ontology user story! \n\nDon't worry about prompting—**find the template 📄 and edit the placeholders 📝** to craft a high-quality response 👍. \n\nLet's get started! **Which domain is this ontology for?** For example, 'Healthcare, Wine, Music, etc.'. Use template **[Create Domain]** to answer."
41
  )}
42
  ],
43
  height="472px",
 
46
  user_story_input = gr.Textbox(
47
  label="Message OntoChat",
48
  placeholder="Please type your message here and press Shift + Enter to interact with the chatbot:",
49
+ max_lines = 4,
50
+ lines = 1
51
  )
52
  elicitation_questions_dataset = gr.Dataset(
53
  components=[user_story_input],
54
  label="Prompt Templates",
55
  type="index",
56
  samples=[
57
+ ["Create Domain"],
58
  ["Create Persona"],
59
  ["Create User Goal"],
60
  ["Create Actions"],