Spaces:
Runtime error
Runtime error
KvrParaskevi
commited on
Commit
•
e767674
1
Parent(s):
6dec216
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def load_pipeline():
|
|
32 |
@spaces.GPU
|
33 |
def chat_interface(inputs):
|
34 |
question = inputs["input"]
|
35 |
-
|
36 |
chat_history_tuples = []
|
37 |
for message in chat_history:
|
38 |
chat_history_tuples.append((message[0], message[1]))
|
@@ -42,6 +42,7 @@ def chat_interface(inputs):
|
|
42 |
return result["response"]
|
43 |
|
44 |
llm = load_pipeline()
|
|
|
45 |
|
46 |
template = """<<SYS>>
|
47 |
You are an AI having conversation with a human. Below is an instruction that describes a task.
|
|
|
32 |
@spaces.GPU
|
33 |
def chat_interface(inputs):
|
34 |
question = inputs["input"]
|
35 |
+
|
36 |
chat_history_tuples = []
|
37 |
for message in chat_history:
|
38 |
chat_history_tuples.append((message[0], message[1]))
|
|
|
42 |
return result["response"]
|
43 |
|
44 |
llm = load_pipeline()
|
45 |
+
chat_history = []
|
46 |
|
47 |
template = """<<SYS>>
|
48 |
You are an AI having conversation with a human. Below is an instruction that describes a task.
|