Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import torch
|
|
| 3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, GenerationConfig
|
| 4 |
|
| 5 |
# Define the URL of your model on Hugging Face Spaces
|
| 6 |
-
model_url = 'https://huggingface.co/
|
| 7 |
|
| 8 |
# Load the model and tokenizer directly from the URL
|
| 9 |
try:
|
|
|
|
| 3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, GenerationConfig
|
| 4 |
|
| 5 |
# Define the URL of your model on Hugging Face Spaces
|
| 6 |
+
model_url = 'https://huggingface.co/spaces/waqasali1707/Bart-Base-Summarization/blob/main/bart-base.zip'
|
| 7 |
|
| 8 |
# Load the model and tokenizer directly from the URL
|
| 9 |
try:
|