Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
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)
|