Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from transformers import
|
| 3 |
|
| 4 |
-
|
| 5 |
-
pipe = pipeline("text-classification", model="Wonder-Griffin/JudgeLLM2")
|
| 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 = AutoModelForCasualLM.from_pretrained(
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from transformers import pipeline
|
| 3 |
|
| 4 |
+
pipe = pipeline("text-generation", model="Wonder-Griffin/TraXL")
|
|
|
|
| 5 |
|
| 6 |
# Assuming `model_path` is the Hugging Face model hub path or a local directory
|
| 7 |
+
model_path = "Wonder-Griffin/TraXL" # Define this as needed
|
| 8 |
|
| 9 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
| 10 |
model = AutoModelForCasualLM.from_pretrained(
|