fengtc commited on
Commit
0d7b4ef
1 Parent(s): bb904d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -21,6 +21,12 @@ def predict(message, history):
21
  temperature=1.0,
22
  stream=True
23
  )
 
 
 
 
 
 
24
 
25
  partial_message = ""
26
  for chunk in response:
 
21
  temperature=1.0,
22
  stream=True
23
  )
24
+
25
+ def process_example(message: str) -> tuple[str, list[tuple[str, str]]]:
26
+ generator = generate(message, [], DEFAULT_SYSTEM_PROMPT, 1024, 1, 0.95, 50)
27
+ for x in generator:
28
+ pass
29
+ return '', x
30
 
31
  partial_message = ""
32
  for chunk in response: