File size: 435 Bytes
7e4d4dd
a7ff5fa
755df80
 
 
f56d6bd
7e4d4dd
755df80
 
 
 
2909dc7
755df80
 
 
ee7e521
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr

def call_private_api(user_input: str) -> str:
    # Your processing logic
    return f"Processed query: {user_input}"

with gr.Blocks() as demo:
    gr.Markdown("# Production API Server")
    
    # Expose the logic safely to the Gradio pipeline architecture
    gr.api(fn=call_private_api, api_name="call_private_api")

# Force execution via queue (Crucial for bypassing Edge updates)
demo.queue()
demo.launch()