Spaces:
Sleeping
Sleeping
File size: 381 Bytes
7fe0573 d8a9611 5949d48 7fe0573 5949d48 7fe0573 5949d48 7fe0573 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
import requests
def get_message():
# API URL (Cloud Run Service URL)
url = "https://hello-493710908743.us-central1.run.app"
response = requests.get(url) # GET request
return response.text
# Gradio Interface
iface = gr.Interface(
fn=get_message,
inputs=None,
outputs="text",
title="Cloud Run App Integration"
)
iface.launch()
|