Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import AutoModelWithLMHead, AutoTokenizer
|
|
|
|
| 3 |
|
| 4 |
# Load your model and tokenizer from the hub
|
| 5 |
model = AutoModelWithLMHead.from_pretrained("shrivasc/my-finetuned-gpt2-medquad") # Replace with your model path
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import AutoModelWithLMHead, AutoTokenizer
|
| 3 |
+
import torch
|
| 4 |
|
| 5 |
# Load your model and tokenizer from the hub
|
| 6 |
model = AutoModelWithLMHead.from_pretrained("shrivasc/my-finetuned-gpt2-medquad") # Replace with your model path
|