ciyidogan commited on
Commit
b67fb94
·
verified ·
1 Parent(s): 7557f38

Update inference_test.py

Browse files
Files changed (1) hide show
  1. inference_test.py +3 -0
inference_test.py CHANGED
@@ -76,6 +76,9 @@ def root():
76
 
77
  @app.post("/start_chat")
78
  def start_chat():
 
 
 
79
  if not hasattr(app.state, "session_store"):
80
  app.state.session_store = {}
81
 
 
76
 
77
  @app.post("/start_chat")
78
  def start_chat():
79
+ if llm_model.model is None or llm_model.tokenizer is None:
80
+ return {"error": "Model yüklenmedi."}
81
+
82
  if not hasattr(app.state, "session_store"):
83
  app.state.session_store = {}
84