Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,9 +53,6 @@ def respond0(multimodal_input,password):
|
|
53 |
content.append({"type": "text", "text": multimodal_input["text"]})
|
54 |
messages=[{"role":"system", "content":[{"type":"text", "text":"Your name is Chatchat.And, your made by SungYoon.In Korean, 정성윤.And these are the instructions:"+"You are a helpful assietant."}]}]
|
55 |
messages.append([{"role": "user", "content": content}])
|
56 |
-
for val in history:
|
57 |
-
if val[1]:
|
58 |
-
messages.append({"role": "assistant", "content": [{"type":"text", "text":val[1]}]})
|
59 |
response = ""
|
60 |
|
61 |
model_id = "HuggingFaceM4/idefics2-8b"
|
|
|
53 |
content.append({"type": "text", "text": multimodal_input["text"]})
|
54 |
messages=[{"role":"system", "content":[{"type":"text", "text":"Your name is Chatchat.And, your made by SungYoon.In Korean, 정성윤.And these are the instructions:"+"You are a helpful assietant."}]}]
|
55 |
messages.append([{"role": "user", "content": content}])
|
|
|
|
|
|
|
56 |
response = ""
|
57 |
|
58 |
model_id = "HuggingFaceM4/idefics2-8b"
|