Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ def chat_submit(message, history, conversation_state, model_name, max_length, te
|
|
102 |
if not message.strip():
|
103 |
return "", history, conversation_state
|
104 |
|
105 |
-
model_id = MODELS.get(model_name, MODELS["
|
106 |
try:
|
107 |
# Print debug info to help diagnose issues
|
108 |
print(f"Processing message: {message}")
|
@@ -167,7 +167,7 @@ css = """
|
|
167 |
}
|
168 |
"""
|
169 |
|
170 |
-
with gr.Blocks(title="GPT-OSS Playground Chat", css=css
|
171 |
gr.Markdown("# 🚀 GPT-OSS Playground Chat")
|
172 |
gr.Markdown("*Powered by HuggingFace ZeroGPU*")
|
173 |
|
|
|
102 |
if not message.strip():
|
103 |
return "", history, conversation_state
|
104 |
|
105 |
+
model_id = MODELS.get(model_name, MODELS["20B"])
|
106 |
try:
|
107 |
# Print debug info to help diagnose issues
|
108 |
print(f"Processing message: {message}")
|
|
|
167 |
}
|
168 |
"""
|
169 |
|
170 |
+
with gr.Blocks(title="GPT-OSS Playground Chat", css=css) as demo:
|
171 |
gr.Markdown("# 🚀 GPT-OSS Playground Chat")
|
172 |
gr.Markdown("*Powered by HuggingFace ZeroGPU*")
|
173 |
|