File size: 461 Bytes
e8fb5c0
 
0a632f8
 
 
 
 
 
 
 
 
 
1bed45e
0fb009b
d874c68
0a632f8
37cc307
dc944d5
e8fb5c0
0a632f8
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os

import gemini_gradio

from utils import get_app

demo = get_app(
    models=[
        "gemini-1.5-flash",
        "gemini-1.5-flash-8b",
        "gemini-1.5-pro",
        "gemini-exp-1114",
        "gemini-exp-1121",
        "gemini-exp-1206",
        "gemini-2.0-flash-exp",
    ],
    default_model="gemini-exp-1206",
    src=gemini_gradio.registry,
    accept_token=not os.getenv("GEMINI_API_KEY"),
)

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