satellite / test_gradio.py
prateeksharmacoder's picture
Deploy ZeroGPU compatible code with Sen2SR
8d928e8 verified
Raw History Blame Contribute Delete
268 Bytes
import gradio as gr
import shutil
def test_fn(img_path):
print("Received path:", img_path)
return img_path
demo = gr.Interface(fn=test_fn, inputs=gr.Image(type="filepath"), outputs="text")
if __name__ == "__main__":
demo.launch(prevent_thread_lock=True)