nikravan commited on
Commit
dba52b2
·
verified ·
1 Parent(s): 803f51e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -23,10 +23,10 @@ def generate_response(message, history):
23
 
24
 
25
  # synth,cot composite — reasoning / CoT style (see Disclaimer for other modes)
26
- conversation = ""
27
- for user_msg, assistant_msg in history:
28
- conversation += f"user: {user_msg}\nassistant: {assistant_msg}\n"
29
- conversation += f"user: {message}\nassistant: "
30
 
31
  condition = "<|quad_end|><|object_ref_end|>"
32
  prompt = f"<|im_start|>{condition}{conversation} "
@@ -41,7 +41,7 @@ def generate_response(message, history):
41
  chatbot = gr.ChatInterface(
42
  fn=generate_response,
43
  title="Simple ZeroGPU Chatbot",
44
- description="A simple chatbot using HRM-Text, running on Hugging Face ZeroGPU.",
45
  examples=["Explain why the sky is blue?", "Introduce yourself", "What's the latest news?"]
46
  )
47
 
 
23
 
24
 
25
  # synth,cot composite — reasoning / CoT style (see Disclaimer for other modes)
26
+ conversation = message
27
+ # for user_msg, assistant_msg in history:
28
+ # conversation += f"user: {user_msg}\nassistant: {assistant_msg}\n"
29
+ # conversation += f"user: {message}\nassistant: "
30
 
31
  condition = "<|quad_end|><|object_ref_end|>"
32
  prompt = f"<|im_start|>{condition}{conversation} "
 
41
  chatbot = gr.ChatInterface(
42
  fn=generate_response,
43
  title="Simple ZeroGPU Chatbot",
44
+ description="A simple chatbot using HRM-Text for test, running on Hugging Face ZeroGPU. use only one question in any round",
45
  examples=["Explain why the sky is blue?", "Introduce yourself", "What's the latest news?"]
46
  )
47