v3_ai_assistant / app_simple.py
Julian Vanecek
Fix Gradio compatibility issues
7b363cb
raw
history blame contribute delete
525 Bytes
"""
Simple Gradio app for HuggingFace Spaces
"""
import gradio as gr
import os
import sys
# Add py directory to path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'py'))
def chat(message, history):
"""Simple echo function for testing"""
return f"Echo: {message}"
# Create simple interface
demo = gr.ChatInterface(
fn=chat,
title="AI Assistant Multi-Agent System",
description="A multi-agent conversational AI system (simplified for testing)"
)
if __name__ == "__main__":
demo.launch()