File size: 359 Bytes
e8fb5c0
 
0a632f8
 
 
 
 
 
 
 
421739d
 
0a632f8
421739d
dc944d5
e8fb5c0
0a632f8
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os

import xai_gradio

from utils import get_app

demo = get_app(
    models=[
        "grok-beta",
        "grok-vision-beta",
        "grok-2-vision-1212",
        "grok-2-1212",
    ],
    default_model="grok-2-vision-1212",
    src=xai_gradio.registry,
    accept_token=not os.getenv("XAI_API_KEY"),
)

if __name__ == "__main__":
    demo.launch()