Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Create a text generation pipeline using Transformers
|
5 |
-
text_generation_pipeline = pipeline("text-generation", model="
|
6 |
|
7 |
def generate_explanation(input_text):
|
8 |
# Generate a paragraph explaining the details of the input text
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Create a text generation pipeline using Transformers
|
5 |
+
text_generation_pipeline = pipeline("text-generation", model="law-ai/InLegalBERT") # Replace with the actual model name
|
6 |
|
7 |
def generate_explanation(input_text):
|
8 |
# Generate a paragraph explaining the details of the input text
|