Aratako commited on
Commit
1657768
·
verified ·
1 Parent(s): e55efcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -23,7 +23,7 @@ LICENSE = """
23
 
24
  PLACEHOLDER = """
25
  <div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
26
- <h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">DeepSeek-R1-Distill-Qwen-32B-bnb-4bit</h1>
27
  <p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Ask me anything...</p>
28
  </div>
29
  """
@@ -98,10 +98,10 @@ def chat_llama3_8b(message: str,
98
  outputs = []
99
  for text in streamer:
100
  # Remove thinking tags to prevent Gradio display issues
101
- if "<think>" in text:
102
- text = text.replace("<think>", "[think]").strip()
103
- if "</think>" in text:
104
- text = text.replace("</think>", "[/think]").strip()
105
  outputs.append(text)
106
  print("".join(outputs))
107
  yield "".join(outputs)
 
23
 
24
  PLACEHOLDER = """
25
  <div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
26
+ <h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">DeepSeek-R1-Distill-Qwen-32B-Japanese-AWQ</h1>
27
  <p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Ask me anything...</p>
28
  </div>
29
  """
 
98
  outputs = []
99
  for text in streamer:
100
  # Remove thinking tags to prevent Gradio display issues
101
+ #if "<think>" in text:
102
+ #text = text.replace("<think>", "[think]").strip()
103
+ #if "</think>" in text:
104
+ #text = text.replace("</think>", "[/think]").strip()
105
  outputs.append(text)
106
  print("".join(outputs))
107
  yield "".join(outputs)