Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def generate_image(text):
|
|
| 33 |
|
| 34 |
# Constants
|
| 35 |
MAX_MAX_NEW_TOKENS = 2048
|
| 36 |
-
DEFAULT_MAX_NEW_TOKENS =
|
| 37 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
| 38 |
|
| 39 |
LICENSE = """
|
|
@@ -63,7 +63,7 @@ if torch.cuda.is_available():
|
|
| 63 |
|
| 64 |
|
| 65 |
def make_prompt(entry):
|
| 66 |
-
return f"### Human: When asked to explain use a story.Don't repeat the assesments, limit to
|
| 67 |
|
| 68 |
def process_text(text):
|
| 69 |
|
|
|
|
| 33 |
|
| 34 |
# Constants
|
| 35 |
MAX_MAX_NEW_TOKENS = 2048
|
| 36 |
+
DEFAULT_MAX_NEW_TOKENS = 100
|
| 37 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
| 38 |
|
| 39 |
LICENSE = """
|
|
|
|
| 63 |
|
| 64 |
|
| 65 |
def make_prompt(entry):
|
| 66 |
+
return f"### Human: When asked to explain use a story.Don't repeat the assesments, limit to 100 words.However keep context in mind if edits to the content is required. {entry} ### Assistant:"
|
| 67 |
|
| 68 |
def process_text(text):
|
| 69 |
|