PaperX / app.py
snym04's picture
Update app.py
1485f56 verified
raw
history blame contribute delete
586 Bytes
import gradio as gr
import sys
print("BOOT: app.py imported", flush=True)
print("BOOT: Python version:", sys.version, flush=True)
def hello():
print("Button clicked", flush=True)
return "App is running correctly."
with gr.Blocks() as demo:
gr.Markdown("# Minimal Test App")
gr.Markdown("If you can see this, the app started successfully.")
btn = gr.Button("Click me")
output = gr.Textbox()
btn.click(hello, outputs=output)
if __name__ == "__main__":
print("BOOT: Launching Gradio", flush=True)
demo.launch(server_name="0.0.0.0", server_port=7860)