facehugger92 commited on
Commit
33f8cf1
1 Parent(s): a4018ba

Upload 5 files

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ except:
18
  # ===============================
19
 
20
  MAX_INPUT_SIZE = 4096
21
- NUM_OUTPUT = 3072
22
  CHUNK_OVERLAP_RATIO = 0.15
23
  CHUNK_SIZE_LIMIT = 1000
24
  TEMPERATURE = 0.5
@@ -72,7 +72,7 @@ def upload_file(file):
72
  except Exception as e:
73
  return f"Error: {str(e)}"
74
 
75
- def chatfunc(input_text, chat_history, max_chat_length=6):
76
  prompt = """You are an insight bot that helps users (special educators and school psychologists) build individual education programs based on disability categories using DWW (a library of research-backed interviews and tools) as reference.
77
  Refer to the DWW's context as much as you can to provide a detailed answer."""
78
  if PDF_CONTENT.value:
 
18
  # ===============================
19
 
20
  MAX_INPUT_SIZE = 4096
21
+ NUM_OUTPUT = 2048
22
  CHUNK_OVERLAP_RATIO = 0.15
23
  CHUNK_SIZE_LIMIT = 1000
24
  TEMPERATURE = 0.5
 
72
  except Exception as e:
73
  return f"Error: {str(e)}"
74
 
75
+ def chatfunc(input_text, chat_history, max_chat_length=4):
76
  prompt = """You are an insight bot that helps users (special educators and school psychologists) build individual education programs based on disability categories using DWW (a library of research-backed interviews and tools) as reference.
77
  Refer to the DWW's context as much as you can to provide a detailed answer."""
78
  if PDF_CONTENT.value: