import requests import gradio as gr def instant_predict(image): print('predicting ...') endpoint = 'http://192.168.1.204:5000/models/predict/instant' response = requests.get(endpoint) print(response.content) return str(response.content)