Update utils.py
Browse files
utils.py
CHANGED
|
@@ -379,6 +379,11 @@ def process_chatverlauf(prompt, model, oai_key):
|
|
| 379 |
}
|
| 380 |
return headers, payload
|
| 381 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 382 |
|
| 383 |
########################################################
|
| 384 |
#Ausgabe im Chatbot aufhübschen...
|
|
|
|
| 379 |
}
|
| 380 |
return headers, payload
|
| 381 |
|
| 382 |
+
def process_chatverlauf_HF(prompt, llm):
|
| 383 |
+
llm_chain = LLMChain(llm = llm, prompt = "")
|
| 384 |
+
result = llm_chain.run({"question": prompt})
|
| 385 |
+
return result
|
| 386 |
+
|
| 387 |
|
| 388 |
########################################################
|
| 389 |
#Ausgabe im Chatbot aufhübschen...
|