Upload DEL.py
Browse files
DEL.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
print("DEBUG: App is starting...", file=sys.stderr)
|
| 3 |
+
|
| 4 |
+
import time
|
| 5 |
+
print("DEBUG: Importing Gradio/Streamlit...", file=sys.stderr)
|
| 6 |
+
import gradio as gr
|
| 7 |
+
|
| 8 |
+
print("DEBUG: Loading transformers...", file=sys.stderr)
|
| 9 |
+
from transformers import AutoModel
|
| 10 |
+
|
| 11 |
+
print("DEBUG: Downloading/Loading model weights... (This might take a while)", file=sys.stderr)
|
| 12 |
+
# Your model loading code here...
|
| 13 |
+
model = AutoModel.from_pretrained("...")
|
| 14 |
+
|
| 15 |
+
print("DEBUG: Model loaded successfully!", file=sys.stderr)
|