Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ tokenizer = AutoTokenizer.from_pretrained("openai-community/gpt2")
|
|
| 27 |
model_response = AutoModelForCausalLM.from_pretrained("openai-community/gpt2").to(device)
|
| 28 |
|
| 29 |
# Load the NLU model for intent detection
|
| 30 |
-
nlu_model = AutoModelForSequenceClassification.from_pretrained("distilbert/distilbert-base-uncased-finetuned-sst-2-english")
|
| 31 |
|
| 32 |
# Define the function to find the most relevant document
|
| 33 |
@spaces.GPU(duration=120)
|
|
|
|
| 27 |
model_response = AutoModelForCausalLM.from_pretrained("openai-community/gpt2").to(device)
|
| 28 |
|
| 29 |
# Load the NLU model for intent detection
|
| 30 |
+
nlu_model = AutoModelForSequenceClassification.from_pretrained("distilbert/distilbert-base-uncased-finetuned-sst-2-english")
|
| 31 |
|
| 32 |
# Define the function to find the most relevant document
|
| 33 |
@spaces.GPU(duration=120)
|