Spaces:
Runtime error
Runtime error
Commit
·
27e891b
1
Parent(s):
28520b2
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import re
|
| 3 |
from magma import Magma
|
| 4 |
from magma.image_input import ImageInput
|
| 5 |
|
| 6 |
-
import os
|
| 7 |
-
os.system("pip install deepspeed")
|
| 8 |
-
|
| 9 |
model = Magma.from_checkpoint(
|
| 10 |
config_path = "configs/MAGMA_v1.yml",
|
| 11 |
checkpoint_path = "./mp_rank_00_model_states.pt",
|
|
|
|
| 1 |
+
|
| 2 |
+
import os
|
| 3 |
+
os.system("pip install deepspeed")
|
| 4 |
+
|
| 5 |
import gradio as gr
|
| 6 |
import re
|
| 7 |
from magma import Magma
|
| 8 |
from magma.image_input import ImageInput
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
model = Magma.from_checkpoint(
|
| 11 |
config_path = "configs/MAGMA_v1.yml",
|
| 12 |
checkpoint_path = "./mp_rank_00_model_states.pt",
|