cgt-llm-chatbot-v2 / test_minimal.py
arahrooh's picture
Fix: Use simplest possible Gradio Interface instead of Blocks
b277db8
raw
history blame contribute delete
445 Bytes
"""
Minimal test to verify Gradio works on Spaces
This is the absolute simplest Gradio app possible
"""
import gradio as gr
# Create the simplest possible demo
demo = gr.Interface(
fn=lambda x: f"You said: {x}",
inputs="text",
outputs="text",
title="Test Demo",
description="If you see this, Gradio is working!"
)
print(f"Demo created: {type(demo)}")
print(f"Demo is valid: {isinstance(demo, (gr.Blocks, gr.Interface))}")