Spaces:
Running
only for gradio?
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!
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
thanks @codelion , I make it work with flask, my question is if is permitted
@erikbeltran That is not possible with the current software. ZERO GPUs use a customized Gradio SDK.
You can import flask in your space , but it must still be using gradio sdk. What is in your requirements.txt?
$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)
so I found a bug?
I also can help in finding bugs.
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.