Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|