Spaces:
Configuration error
Configuration error
File size: 617 Bytes
150a157 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import gradio as gr
import os
import sys
# Logs de démarrage
print(f"🐍 Python Version: {sys.version}")
print(f"📂 CWD: {os.getcwd()}")
print("🚀 Starting Debug App...")
def greet(name):
return f"Hello {name}, the app is working!"
with gr.Blocks() as demo:
gr.Markdown("# 🛠️ Debug Mode")
gr.Markdown(f"Python: {sys.version}")
inp = gr.Textbox(label="Name")
out = gr.Textbox(label="Output")
btn = gr.Button("Test")
btn.click(greet, inp, out)
if __name__ == "__main__":
print("🔌 Launching server...")
demo.launch(server_name="0.0.0.0", server_port=7860)
|