Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,12 +25,7 @@ MAX_MAX_NEW_TOKENS = 1024
|
|
| 25 |
DEFAULT_MAX_NEW_TOKENS = 200
|
| 26 |
|
| 27 |
# Setup the engine
|
| 28 |
-
pipe = deepsparse.
|
| 29 |
-
task="text-generation",
|
| 30 |
-
model_path=MODEL_ID,
|
| 31 |
-
sequence_length=MAX_MAX_NEW_TOKENS,
|
| 32 |
-
prompt_sequence_length=16,
|
| 33 |
-
)
|
| 34 |
|
| 35 |
|
| 36 |
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
def clear_and_save_textbox(message: str) -> Tuple[str, str]:
|