Update app.py
Browse files
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
|
| 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 =
|
| 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"],
|