varun500 commited on
Commit
8a51848
·
1 Parent(s): d3012e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from llama_cpp import Llama
4
  llm = Llama(model_path="ggml-alpaca-7b-q4.bin", n_ctx=256, n_batch=128)
5
 
6
  def generate_text(input_text):
7
- output = llm(f"{input_text}", max_tokens=128, stop=["Q:", "\n", "#"], echo=False)
8
  return output['choices'][0]['text']
9
 
10
  input_text = gr.inputs.Textbox(lines= 10, label="Enter your input text")
 
4
  llm = Llama(model_path="ggml-alpaca-7b-q4.bin", n_ctx=256, n_batch=128)
5
 
6
  def generate_text(input_text):
7
+ output = llm(f"{input_text}", max_tokens=512, stop=["Q:", "\n", "#"], echo=False)
8
  return output['choices'][0]['text']
9
 
10
  input_text = gr.inputs.Textbox(lines= 10, label="Enter your input text")