khairo14 commited on
Commit
9041a04
·
verified ·
1 Parent(s): 7d3003a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  # You can change the model to any light-weight code model
5
- pipe = pipeline("text-generation", model="Salesforce/codegen-350M-mono")
6
 
7
  def generate(prompt):
8
  result = pipe(prompt, max_new_tokens=200)
 
2
  from transformers import pipeline
3
 
4
  # You can change the model to any light-weight code model
5
+ pipe = pipeline("text-generation", model="mistralai/Mistral-7B-Instruct-v0.1")
6
 
7
  def generate(prompt):
8
  result = pipe(prompt, max_new_tokens=200)