Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def generate_text(prompt, max_length=1024):
|
|
44 |
print(response)
|
45 |
# Anahtar kelimeden sonrasını çıkarma
|
46 |
if keyword in response:
|
47 |
-
extracted_content = response.split(keyword, 1)[1].strip().replace("<|eot_id|>")
|
48 |
return extracted_content
|
49 |
else:
|
50 |
response
|
@@ -80,7 +80,7 @@ def build_prompt(system_message, chat_history):
|
|
80 |
# Streamlit Arayüzü
|
81 |
# ------------------------------------------------
|
82 |
def main():
|
83 |
-
st.title("
|
84 |
|
85 |
# Session state'de system mesajı ve konuşmaları tutalım
|
86 |
if "system_message" not in st.session_state:
|
|
|
44 |
print(response)
|
45 |
# Anahtar kelimeden sonrasını çıkarma
|
46 |
if keyword in response:
|
47 |
+
extracted_content = response.split(keyword, 1)[1].strip().replace("<|eot_id|>","")
|
48 |
return extracted_content
|
49 |
else:
|
50 |
response
|
|
|
80 |
# Streamlit Arayüzü
|
81 |
# ------------------------------------------------
|
82 |
def main():
|
83 |
+
st.title("CLLM-0.0.2 Chat")
|
84 |
|
85 |
# Session state'de system mesajı ve konuşmaları tutalım
|
86 |
if "system_message" not in st.session_state:
|