Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
add paligemma
Browse files- app.py +4 -0
- app_paligemma.py +10 -0
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
3 |
from app_replicate import demo as demo_replicate
|
4 |
from app_huggingface import demo as demo_huggingface
|
5 |
from app_playai import demo as demo_playai
|
@@ -24,6 +25,9 @@ from app_xai import demo as demo_grok
|
|
24 |
from app_showui import demo as demo_showui
|
25 |
|
26 |
with gr.Blocks(fill_height=True) as demo:
|
|
|
|
|
|
|
27 |
with gr.Tab("Qwen"):
|
28 |
demo_qwen.render()
|
29 |
gr.Markdown("This app is built with gradio, check out gradio github and star: <a href='https://github.com/gradio-app/gradio'>Gradio <img src='https://img.shields.io/github/stars/gradio-app/gradio'></a>.")
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
from app_paligemma import demo as demo_paligemma
|
4 |
from app_replicate import demo as demo_replicate
|
5 |
from app_huggingface import demo as demo_huggingface
|
6 |
from app_playai import demo as demo_playai
|
|
|
25 |
from app_showui import demo as demo_showui
|
26 |
|
27 |
with gr.Blocks(fill_height=True) as demo:
|
28 |
+
with gr.Tab("Paligemma"):
|
29 |
+
demo_paligemma.render()
|
30 |
+
gr.Markdown("This app is built with gradio, check out gradio github and star: <a href='https://github.com/gradio-app/gradio'>Gradio <img src='https://img.shields.io/github/stars/gradio-app/gradio'></a>.")
|
31 |
with gr.Tab("Qwen"):
|
32 |
demo_qwen.render()
|
33 |
gr.Markdown("This app is built with gradio, check out gradio github and star: <a href='https://github.com/gradio-app/gradio'>Gradio <img src='https://img.shields.io/github/stars/gradio-app/gradio'></a>.")
|
app_paligemma.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
# Load the Gradio space
|
4 |
+
demo = gr.load(name="akhaliq/paligemma2-10b-ft-docci-448", src="spaces")
|
5 |
+
|
6 |
+
|
7 |
+
# Disable API access for all functions
|
8 |
+
if hasattr(demo, 'fns'):
|
9 |
+
for fn in demo.fns.values():
|
10 |
+
fn.api_name = False
|