wasmdashai commited on
Commit
aec21e2
·
verified ·
1 Parent(s): 2e10580

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -32,7 +32,7 @@ def respond(message, chat_history):
32
  ).to(model.device)
33
 
34
  # توليد الاستجابة
35
- outputs = model.generate(input_ids, max_new_tokens=2024)
36
  response = tokenizer.decode(outputs[0][input_ids.shape[-1]:], skip_special_tokens=True)
37
 
38
  # إرجاع الرد و تحديث المحادثة
@@ -41,8 +41,8 @@ def respond(message, chat_history):
41
  # واجهة Gradio للدردشة
42
  chat = gr.ChatInterface(
43
  fn=respond,
44
- title="Seed-Coder Chat",
45
- description="شات مباشر مع نموذج Seed-Coder-8B-Instruct",
46
  chatbot=gr.Chatbot(height=450),
47
  textbox=gr.Textbox(placeholder="اكتب سؤالك هنا...", container=False, scale=7),
48
  retry_btn="🔁 إعادة المحاولة",
 
32
  ).to(model.device)
33
 
34
  # توليد الاستجابة
35
+ outputs = model.generate(input_ids, max_new_tokens=4048)
36
  response = tokenizer.decode(outputs[0][input_ids.shape[-1]:], skip_special_tokens=True)
37
 
38
  # إرجاع الرد و تحديث المحادثة
 
41
  # واجهة Gradio للدردشة
42
  chat = gr.ChatInterface(
43
  fn=respond,
44
+ title="WasmAI-Coder",
45
+ description="c# Validator_template",
46
  chatbot=gr.Chatbot(height=450),
47
  textbox=gr.Textbox(placeholder="اكتب سؤالك هنا...", container=False, scale=7),
48
  retry_btn="🔁 إعادة المحاولة",