Cran-May commited on
Commit
e416fa6
·
1 Parent(s): 628e85a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -3,6 +3,9 @@ from time import sleep
3
  from ctransformers import AutoModelForCausalLM
4
  import gradio as gr
5
 
 
 
 
6
  model = AutoModelForCausalLM.from_pretrained("Cran-May/OpenSLIDE", model_file="SLIDE.0.1.gguf", model_type="mistral", gpu_layers=0)
7
 
8
  DEFAULT_SYSTEM_PROMPT = """You are a helpful, respectful and honest INTP-T AI Assistant named "Shi-Ci" in English or "兮辞" in Chinese.
 
3
  from ctransformers import AutoModelForCausalLM
4
  import gradio as gr
5
 
6
+ def clear_session():
7
+ return []
8
+
9
  model = AutoModelForCausalLM.from_pretrained("Cran-May/OpenSLIDE", model_file="SLIDE.0.1.gguf", model_type="mistral", gpu_layers=0)
10
 
11
  DEFAULT_SYSTEM_PROMPT = """You are a helpful, respectful and honest INTP-T AI Assistant named "Shi-Ci" in English or "兮辞" in Chinese.