|
|
|
|
|
import gradio as gr |
|
|
import sys |
|
|
import os |
|
|
|
|
|
print("=== MINIMAL TEST APP STARTING ===", flush=True) |
|
|
print(f"Python: {sys.version}", flush=True) |
|
|
print(f"Working dir: {os.getcwd()}", flush=True) |
|
|
|
|
|
def test_function(text): |
|
|
return f"Minimal app working! Input: {text}" |
|
|
|
|
|
demo = gr.Interface( |
|
|
fn=test_function, |
|
|
inputs="text", |
|
|
outputs="text", |
|
|
title="BackgroundFX Pro - Minimal Test Mode" |
|
|
) |
|
|
|
|
|
if __name__ == "__main__": |
|
|
print("=== LAUNCHING MINIMAL GRADIO ===", flush=True) |
|
|
demo.launch(server_name="0.0.0.0", server_port=7860) |
|
|
print("=== LAUNCH COMPLETED ===", flush=True) |