Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
4 |
chat = pipeline("text-generation", model="microsoft/phi-2")
|
5 |
|
6 |
|
7 |
-
def chat_with_model(prompt):
|
8 |
response = chat(prompt, max_length=50)
|
9 |
return response[0]['generated_text']
|
10 |
|
|
|
4 |
chat = pipeline("text-generation", model="microsoft/phi-2")
|
5 |
|
6 |
|
7 |
+
def chat_with_model(prompt, history):
|
8 |
response = chat(prompt, max_length=50)
|
9 |
return response[0]['generated_text']
|
10 |
|