Spaces:
Running
Running
| 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") | |