gitcloud-bridge / app.py
Noperi
Use synchronous function with @spaces.GPU for ZeroGPU compatibility
564b9a0
Raw
History Blame Contribute Delete
247 Bytes
import gradio as gr
import spaces
@spaces.GPU
def download_telegram_file(file_id):
return "Bridge ready: " + file_id
demo = gr.Interface(fn=download_telegram_file, inputs="text", outputs="text")
if __name__ == "__main__":
demo.launch()