TejAndrewsACC commited on
Commit
6de9fab
·
verified ·
1 Parent(s): e7caca9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -8
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
- predict,
34
- type="messages",
35
- title="ACC Emulect+",
36
- theme="TejAndrewsACC/Emulect"
37
- )
38
-
39
- demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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)