Shaltiel commited on
Commit
a04c19f
1 Parent(s): 75a8e67

fixed type hint

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def messages_to_history(messages: Messages) -> Tuple[str, History]:
34
  history.append([q['content'], r['content']])
35
  return system, history
36
 
37
- def model_chat(query: Optional[str], history: Optional[History]) -> Generator[Tuple[str, str, History]]:
38
  if query is None:
39
  query = ''
40
  if history is None:
 
34
  history.append([q['content'], r['content']])
35
  return system, history
36
 
37
+ def model_chat(query: Optional[str], history: Optional[History]) -> Generator[Tuple[str, str, History], None, None]:
38
  if query is None:
39
  query = ''
40
  if history is None: