Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,10 @@ import gradio as gr
|
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
3 |
|
4 |
# Use a pipeline as a high-level helper for text generation
|
5 |
-
pipe = pipeline("text-generation", model="Wonder-Griffin/
|
6 |
|
7 |
# Assuming `model_path` is the Hugging Face model hub path or a local directory
|
8 |
-
model_path = "Wonder-Griffin/
|
9 |
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
11 |
model = AutoModelForCausalLM.from_pretrained(
|
|
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
3 |
|
4 |
# Use a pipeline as a high-level helper for text generation
|
5 |
+
pipe = pipeline("text-generation", model="Wonder-Griffin/TraXLMistral")
|
6 |
|
7 |
# Assuming `model_path` is the Hugging Face model hub path or a local directory
|
8 |
+
model_path = "Wonder-Griffin/TraXLMistral" # Define this as needed
|
9 |
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
11 |
model = AutoModelForCausalLM.from_pretrained(
|