Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def respond(
|
|
| 15 |
Để biết thêm thông tin về hỗ trợ API Suy luận của `huggingface_hub`, vui lòng kiểm tra tài liệu: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
| 16 |
"""
|
| 17 |
# Đã thay đổi mô hình thành Qwen/Qwen3-4B-Thinking-2507
|
| 18 |
-
client = InferenceClient(token=hf_token.token, model="
|
| 19 |
|
| 20 |
messages = [{"role": "system", "content": system_message}]
|
| 21 |
messages.extend(history)
|
|
@@ -45,7 +45,7 @@ chatbot = gr.ChatInterface(
|
|
| 45 |
type="messages",
|
| 46 |
additional_inputs=[
|
| 47 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
| 48 |
-
gr.Slider(minimum=1, maximum=
|
| 49 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.7, step=0.1, label="Temperature"),
|
| 50 |
gr.Slider(
|
| 51 |
minimum=0.1,
|
|
|
|
| 15 |
Để biết thêm thông tin về hỗ trợ API Suy luận của `huggingface_hub`, vui lòng kiểm tra tài liệu: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
| 16 |
"""
|
| 17 |
# Đã thay đổi mô hình thành Qwen/Qwen3-4B-Thinking-2507
|
| 18 |
+
client = InferenceClient(token=hf_token.token, model="phamhoangf/struct-aware-baseline-qwen3-4b")
|
| 19 |
|
| 20 |
messages = [{"role": "system", "content": system_message}]
|
| 21 |
messages.extend(history)
|
|
|
|
| 45 |
type="messages",
|
| 46 |
additional_inputs=[
|
| 47 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
| 48 |
+
gr.Slider(minimum=1, maximum=1024, value=512, step=1, label="Max new tokens"),
|
| 49 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.7, step=0.1, label="Temperature"),
|
| 50 |
gr.Slider(
|
| 51 |
minimum=0.1,
|