Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,6 @@ DATA_FILE = os.path.join("data", DATA_FILENAME)
|
|
| 19 |
# I am guessing we need a write access token.
|
| 20 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 21 |
print("HF TOKEN is none?", HF_TOKEN is None)
|
| 22 |
-
print("HF hub ver", huggingface_hub.__version__)
|
| 23 |
|
| 24 |
repo = Repository(
|
| 25 |
local_dir="data",
|
|
@@ -70,6 +69,23 @@ iface = gr.Interface(fn=chatbot,
|
|
| 70 |
inputs=gr.inputs.Textbox("Enter your question"),
|
| 71 |
outputs="text",
|
| 72 |
title="AI Chatbot trained on J. Haynes mediation material, v0.1",
|
| 73 |
-
description="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
iface.launch()
|
| 75 |
|
|
|
|
| 19 |
# I am guessing we need a write access token.
|
| 20 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 21 |
print("HF TOKEN is none?", HF_TOKEN is None)
|
|
|
|
| 22 |
|
| 23 |
repo = Repository(
|
| 24 |
local_dir="data",
|
|
|
|
| 69 |
inputs=gr.inputs.Textbox("Enter your question"),
|
| 70 |
outputs="text",
|
| 71 |
title="AI Chatbot trained on J. Haynes mediation material, v0.1",
|
| 72 |
+
description="
|
| 73 |
+
|
| 74 |
+
Welcome to the John M Haynes Mediation Chatbot!
|
| 75 |
+
The chatbot is here to answer your questions related to the mediation practice and philosophy of Dr John M Haynes (d. 1999).
|
| 76 |
+
|
| 77 |
+
Here are some questions you might find interesting to ask:
|
| 78 |
+
|
| 79 |
+
1. Could you tell us more about your background and how you became a mediator?
|
| 80 |
+
2. Do you rely on intuition in your mediation sessions, and if so, how do you use it?
|
| 81 |
+
3. What is your organizing metaphor for conflict, and how do you use it to help your clients?
|
| 82 |
+
4. What do you consider to be the future of mediation?
|
| 83 |
+
|
| 84 |
+
Our chatbot is designed to ask you a reflective question at the end of its response to help you gain some insight into your own mediation practice.
|
| 85 |
+
|
| 86 |
+
I would love to hear about your experience, please feel free to email us at peter.p@racr.org.au.
|
| 87 |
+
|
| 88 |
+
")
|
| 89 |
+
|
| 90 |
iface.launch()
|
| 91 |
|