Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ MAX_MAX_NEW_TOKENS = 1024
|
|
| 25 |
DEFAULT_MAX_NEW_TOKENS = 200
|
| 26 |
|
| 27 |
# Setup the engine
|
| 28 |
-
pipe = deepsparse.TextGeneration(model=MODEL_ID, sequence_length=MAX_MAX_NEW_TOKENS)
|
| 29 |
|
| 30 |
|
| 31 |
def clear_and_save_textbox(message: str) -> Tuple[str, str]:
|
|
|
|
| 25 |
DEFAULT_MAX_NEW_TOKENS = 200
|
| 26 |
|
| 27 |
# Setup the engine
|
| 28 |
+
pipe = deepsparse.TextGeneration(model=MODEL_ID, sequence_length=MAX_MAX_NEW_TOKENS, num_cores=8)
|
| 29 |
|
| 30 |
|
| 31 |
def clear_and_save_textbox(message: str) -> Tuple[str, str]:
|