File size: 357 Bytes
5f33e85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
print("App starting...")

def dummy_response(prompt, max_tokens=100):
    return f"Test response to: {prompt[:50]}..."

demo = gr.Interface(
    fn=dummy_response,
    inputs=gr.Textbox(label="Prompt"),
    outputs=gr.Textbox(label="Response"),
    title="Test Space"
)

if __name__ == "__main__":
    demo.launch(server_name="0.0.0.0")