Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,12 +4,12 @@ import requests
|
|
4 |
# GPT-J-6B API
|
5 |
API_URL = "https://api-inference.huggingface.co/models/EleutherAI/gpt-j-6B"
|
6 |
headers = {"Authorization": "Bearer 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"}
|
7 |
-
prompt = """Customer: Hi
|
8 |
-
Agent:
|
9 |
-
Customer: Great! I've been searching for good solutions to enhance memory and health
|
10 |
-
Agent: Let me share some of the resources with you
|
11 |
|
12 |
-
examples = [["mind"], ["memory"], ["sleep"],["wellness"],["nutrition"]]
|
13 |
|
14 |
|
15 |
def poem2_generate(word):
|
4 |
# GPT-J-6B API
|
5 |
API_URL = "https://api-inference.huggingface.co/models/EleutherAI/gpt-j-6B"
|
6 |
headers = {"Authorization": "Bearer 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"}
|
7 |
+
prompt = """Customer: Hi, this is M. Davenport, how may I direct your call?
|
8 |
+
Agent: Thankyou, today I seek some Wellness and Mindfulness advice.
|
9 |
+
Customer: Great! I've been searching for good solutions to enhance memory and health.
|
10 |
+
Agent: Let me share some of the resources with you including mnemonics, agents, nutrition, exercise, and good choices"""
|
11 |
|
12 |
+
examples = [["mind"], ["memory"], ["sleep"],["wellness"],["nutrition"],["mnemonics"]]
|
13 |
|
14 |
|
15 |
def poem2_generate(word):
|