only for gradio?

#20
by erikbeltran - opened
ZeroGPU Explorers org

Hi guys, I just playing around with zero gpu and seems great, but I have a question: currently is permitted run a zero gpu space only with gradio?
What if I build a simple API with flask, is permitted used a space without gradio?

Thanks!

ZeroGPU Explorers org

At the moment it only works for gradio sdk 4+

Also, for now, ZeroGPU Spaces only works with the Gradio SDK

Supported versions:

Gradio: 4+
PyTorch: All versions from 2.0.0 to 2.2.0
Python: 3.10.13
ZeroGPU Explorers org

thanks @codelion , I make it work with flask, my question is if is permitted

ZeroGPU Explorers org

@erikbeltran That is not possible with the current software. ZERO GPUs use a customized Gradio SDK.

ZeroGPU Explorers org

so I found a bug?
Captura de Pantalla 2024-04-19 a la(s) 15.35.15.png

I just a test making a flask app with gpu support and works.. but Im little bit worry if is permited or not.

ZeroGPU Explorers org

You can import flask in your space , but it must still be using gradio sdk. What is in your requirements.txt?

ZeroGPU Explorers org

$cat requirements.txt
flask
accelerate
diffusers
gradio
torch
transformers

so I can load gradio, but I can use the space as simple http api without use gradio ( actually I do this and works,) and is permitted? (im worry more about violate some kind of ToS)

ZeroGPU Explorers org

so I found a bug?

I also can help in finding bugs.

ZeroGPU Explorers org

so I found a bug?
Captura de Pantalla 2024-04-19 a la(s) 15.35.15.png

I just a test making a flask app with gpu support and works.. but Im little bit worry if is permited or not.

No. The ZERO GPUs are only activated if you set the Space type to Gradio, but you can still import and run Flask apps on Gradio spaces. However, the GPU will not be utilized, and it will be the same as if you were running it on CPU.

Sign up or log in to comment