initial commit
Browse files- app.py +4 -0
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -2,7 +2,11 @@ import gradio as gr
|
|
| 2 |
import torch
|
| 3 |
from model import Byt5LightningModule
|
| 4 |
|
|
|
|
| 5 |
model = torch.load("model.pt", map_location=torch.device("cpu"), weights_only=True)
|
|
|
|
|
|
|
|
|
|
| 6 |
model.eval()
|
| 7 |
|
| 8 |
def predict(input_list):
|
|
|
|
| 2 |
import torch
|
| 3 |
from model import Byt5LightningModule
|
| 4 |
|
| 5 |
+
<<<<<<< HEAD
|
| 6 |
model = torch.load("model.pt", map_location=torch.device("cpu"), weights_only=True)
|
| 7 |
+
=======
|
| 8 |
+
model = torch.load("model.pt", map_location=torch.device("cpu"))
|
| 9 |
+
>>>>>>> 4524122 (initial commit)
|
| 10 |
model.eval()
|
| 11 |
|
| 12 |
def predict(input_list):
|
requirements.txt
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
lightning
|
| 2 |
torch
|
| 3 |
gradio
|
| 4 |
-
transformers
|
|
|
|
|
|
| 1 |
lightning
|
| 2 |
torch
|
| 3 |
gradio
|
| 4 |
+
transformers
|
| 5 |
+
gradio
|