Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ MODELS = {
|
|
| 50 |
# "model_name": "Qwen/Qwen3-4B-Thinking-2507:nscale",
|
| 51 |
# "api_url": "https://router.huggingface.co/v1"
|
| 52 |
# },
|
| 53 |
-
"Free - NVIDIA Nemotron-nano-9b + Gemma 3n4b": {
|
| 54 |
"provider": "openrouter",
|
| 55 |
"model_name": "nvidia/nemotron-nano-9b-v2:free",
|
| 56 |
"api_url": "https://openrouter.ai/api/v1",
|
|
@@ -72,7 +72,7 @@ MODELS = {
|
|
| 72 |
"model_name": "alibaba/tongyi-deepresearch-30b-a3b:floor",
|
| 73 |
"api_url": "https://openrouter.ai/api/v1",
|
| 74 |
"translate":"no"
|
| 75 |
-
}
|
| 76 |
# "Kompleks - Gpt-oss-120b": {
|
| 77 |
# "provider": "openrouter",
|
| 78 |
# "model_name": "openai/gpt-oss-120b:floor",
|
|
@@ -208,7 +208,7 @@ footer_md = """
|
|
| 208 |
|
| 209 |
# Create the chat interface
|
| 210 |
with gr.Blocks(
|
| 211 |
-
title="
|
| 212 |
theme=gr.themes.Soft()
|
| 213 |
) as demo:
|
| 214 |
|
|
@@ -238,7 +238,7 @@ with gr.Blocks(
|
|
| 238 |
# Advanced settings
|
| 239 |
with gr.Accordion("Advanced Settings", open=False):
|
| 240 |
system_message = gr.Textbox(
|
| 241 |
-
value="
|
| 242 |
label="System Message",
|
| 243 |
info="Instruksi untuk AI."
|
| 244 |
)
|
|
@@ -247,7 +247,6 @@ with gr.Blocks(
|
|
| 247 |
label="Max New Tokens",
|
| 248 |
info="Jumlah token respon maksimum."
|
| 249 |
)
|
| 250 |
-
|
| 251 |
|
| 252 |
# Main chat interface
|
| 253 |
chatbot = gr.ChatInterface(
|
|
|
|
| 50 |
# "model_name": "Qwen/Qwen3-4B-Thinking-2507:nscale",
|
| 51 |
# "api_url": "https://router.huggingface.co/v1"
|
| 52 |
# },
|
| 53 |
+
"Free - NVIDIA Nemotron-nano-9b [EN] + Gemma 3n4b [ID]": {
|
| 54 |
"provider": "openrouter",
|
| 55 |
"model_name": "nvidia/nemotron-nano-9b-v2:free",
|
| 56 |
"api_url": "https://openrouter.ai/api/v1",
|
|
|
|
| 72 |
"model_name": "alibaba/tongyi-deepresearch-30b-a3b:floor",
|
| 73 |
"api_url": "https://openrouter.ai/api/v1",
|
| 74 |
"translate":"no"
|
| 75 |
+
},
|
| 76 |
# "Kompleks - Gpt-oss-120b": {
|
| 77 |
# "provider": "openrouter",
|
| 78 |
# "model_name": "openai/gpt-oss-120b:floor",
|
|
|
|
| 208 |
|
| 209 |
# Create the chat interface
|
| 210 |
with gr.Blocks(
|
| 211 |
+
title="AI Chat",
|
| 212 |
theme=gr.themes.Soft()
|
| 213 |
) as demo:
|
| 214 |
|
|
|
|
| 238 |
# Advanced settings
|
| 239 |
with gr.Accordion("Advanced Settings", open=False):
|
| 240 |
system_message = gr.Textbox(
|
| 241 |
+
value="Anda adalah asisten AI.",
|
| 242 |
label="System Message",
|
| 243 |
info="Instruksi untuk AI."
|
| 244 |
)
|
|
|
|
| 247 |
label="Max New Tokens",
|
| 248 |
info="Jumlah token respon maksimum."
|
| 249 |
)
|
|
|
|
| 250 |
|
| 251 |
# Main chat interface
|
| 252 |
chatbot = gr.ChatInterface(
|