Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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=
|
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="
|
45 |
-
description="
|
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="🔁 إعادة المحاولة",
|