Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,11 +29,26 @@ def predict(message, history):
|
|
29 |
chunks.append(chunk.choices[0].delta.content or "")
|
30 |
yield "".join(chunks)
|
31 |
|
32 |
-
demo = gr.ChatInterface(
|
33 |
-
|
34 |
-
type="messages",
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
chunks.append(chunk.choices[0].delta.content or "")
|
30 |
yield "".join(chunks)
|
31 |
|
32 |
+
demo = gr.ChatInterface(
|
33 |
+
fn=respond,
|
34 |
+
type="messages",
|
35 |
+
editable=True,
|
36 |
+
analytics_enabled=True,
|
37 |
+
flagging_mode="manual",
|
38 |
+
chatbot=gr.Chatbot(
|
39 |
+
type="messages",
|
40 |
+
label="💙ACC Emulect+💙",
|
41 |
+
show_copy_button=True,
|
42 |
+
group_consecutive_messages=False,
|
43 |
+
avatar_images=(
|
44 |
+
"https://huggingface.co/spaces/TejAndrewsACC/Z3ta_Z/resolve/main/Screenshot_20250201-131420.png",
|
45 |
+
"https://huggingface.co/spaces/TejAndrewsACC/Z3ta_Z/resolve/main/Screenshot_20250201-131420.png"
|
46 |
+
),
|
47 |
+
placeholder="💙Hi, I'm ACC Emulect+💙",
|
48 |
+
show_copy_all_button=True
|
49 |
+
),
|
50 |
+
theme="TejAndrewsACC/Emulect",
|
51 |
+
)
|
52 |
+
|
53 |
+
if __name__ == "__main__":
|
54 |
+
demo.launch(share=True)
|