Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,21 @@
|
|
1 |
import gradio as gr
|
2 |
import gemini_gradio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
-
gr.load(
|
5 |
-
name='gemini-1.5-pro-002',
|
6 |
-
src=gemini_gradio.registry,
|
7 |
-
).launch()
|
|
|
1 |
import gradio as gr
|
2 |
import gemini_gradio
|
3 |
+
import openai_gradio
|
4 |
+
|
5 |
+
with gr.Blocks() as demo:
|
6 |
+
with gr.Tab("gemini-1.5-pro-002"):
|
7 |
+
gr.load(
|
8 |
+
name='gemini-1.5-pro-002',
|
9 |
+
src=gemini_gradio.registry,
|
10 |
+
accept_token=True
|
11 |
+
)
|
12 |
+
with gr.Tab("gpt-4-turbo"):
|
13 |
+
gr.load(
|
14 |
+
name='gpt-4-turbo',
|
15 |
+
src=openai_gradio.registry,
|
16 |
+
accept_token=True
|
17 |
+
)
|
18 |
+
|
19 |
+
demo.launch()
|
20 |
+
|
21 |
|
|
|
|
|
|
|
|