Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ model_name = "MTSAIR/Cotype-Nano"
|
|
12 |
pipe = pipeline("text-generation", model=model_name, device="cpu")
|
13 |
|
14 |
# Define the system prompt
|
15 |
-
system_prompt = {"role": "system", "content": "You are an AI assistant. Your task is to generate a detailed and comprehensive response."}
|
16 |
|
17 |
# Define the Gradio interface
|
18 |
def generate_response(history, user_input, temperature, max_new_tokens, language):
|
|
|
12 |
pipe = pipeline("text-generation", model=model_name, device="cpu")
|
13 |
|
14 |
# Define the system prompt
|
15 |
+
system_prompt = {"role": "system", "content": "You are an AI assistant. Your task is to generate a detailed and comprehensive response. you were developed by MTS. you know two languages: Russian and English."}
|
16 |
|
17 |
# Define the Gradio interface
|
18 |
def generate_response(history, user_input, temperature, max_new_tokens, language):
|