Spaces:
Runtime error
Runtime error
fixed type hint
Browse files
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:
|