ranamhamoud commited on
Commit
ba960b1
โ€ข
1 Parent(s): 387be7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 1024
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 500 words.However keep context in mind if edits to the content is required. {entry} ### Assistant:"
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