Spaces:
Running
on
Zero
Running
on
Zero
v1
Browse files
app.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
import torch
|
2 |
import gradio as gr
|
3 |
from config import *
|
@@ -10,9 +13,6 @@ from meteor.load_meteor import load_meteor
|
|
10 |
from transformers import TextIteratorStreamer
|
11 |
from torchvision.transforms.functional import pil_to_tensor
|
12 |
|
13 |
-
# A100 Zero GPU
|
14 |
-
import spaces
|
15 |
-
|
16 |
# loading meteor model
|
17 |
mmamba = load_mmamba('BK-Lee/Meteor-Mamba').cuda()
|
18 |
meteor, tok_meteor = load_meteor('BK-Lee/Meteor-MLM', bits=4)
|
|
|
1 |
+
# A100 Zero GPU
|
2 |
+
import spaces
|
3 |
+
|
4 |
import torch
|
5 |
import gradio as gr
|
6 |
from config import *
|
|
|
13 |
from transformers import TextIteratorStreamer
|
14 |
from torchvision.transforms.functional import pil_to_tensor
|
15 |
|
|
|
|
|
|
|
16 |
# loading meteor model
|
17 |
mmamba = load_mmamba('BK-Lee/Meteor-Mamba').cuda()
|
18 |
meteor, tok_meteor = load_meteor('BK-Lee/Meteor-MLM', bits=4)
|