Julian Vanecek commited on
Commit
a0b5f78
Β·
1 Parent(s): dd87de0

Fix app.py import and update Gradio version

Browse files

- Change from importing 'demo' to 'create_gradio_interface'
- Update Gradio SDK version from 4.0.0 to 4.44.1
- Fix ImportError: cannot import name 'demo'

Files changed (3) hide show
  1. README.md +1 -1
  2. README_HF.md +0 -59
  3. app.py +3 -2
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: πŸ€–
4
  colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: 4.0.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
4
  colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
+ sdk_version: 4.44.1
8
  app_file: app.py
9
  pinned: false
10
  license: mit
README_HF.md DELETED
@@ -1,59 +0,0 @@
1
- ---
2
- title: AI Assistant Multi Agent System
3
- emoji: πŸ€–
4
- colorFrom: blue
5
- colorTo: purple
6
- sdk: gradio
7
- sdk_version: 4.0.0
8
- app_file: app.py
9
- pinned: false
10
- license: mit
11
- ---
12
-
13
- # AI Assistant Multi-Agent System
14
-
15
- A modern multi-agent conversational AI system built with LangChain, featuring specialized agents for documentation, settings, and system management.
16
-
17
- ## 🌟 Features
18
-
19
- - **πŸ“š Document Reader Agent**: RAG-powered semantic search across technical documentation
20
- - **βš™οΈ Profile Settings Agent**: Manage user preferences and settings
21
- - **πŸ”„ Smart Agent Switching**: Seamless handoff between specialized agents
22
- - **πŸš€ Fast In-Memory Search**: Optimized vector similarity search without external databases
23
-
24
- ## πŸ”§ Configuration
25
-
26
- Set your OpenAI API key in the Space settings:
27
-
28
- ```
29
- OPENAI_API_KEY=your-api-key-here
30
- ```
31
-
32
- ## πŸ’¬ Usage Examples
33
-
34
- Simply start chatting! The Document Reader agent handles documentation queries by default, and will automatically transfer you to the appropriate agent when needed.
35
-
36
- ### Example Queries:
37
- - "How do I install Harmony 1.8?"
38
- - "Show me webhook documentation for Chorus"
39
- - "Set my profile name to Alice"
40
- - "What are the system requirements for Harmony?"
41
-
42
- ## πŸ—οΈ Architecture
43
-
44
- This system uses:
45
- - **LangChain** for agent orchestration
46
- - **OpenAI** embeddings and LLMs
47
- - **In-memory vector search** for fast document retrieval
48
- - **Gradio** for the web interface
49
-
50
- ## πŸ“Š Available Documentation
51
-
52
- - **Harmony**: Versions 1.2, 1.5, 1.6, 1.8
53
- - **Chorus**: Version 1.1
54
-
55
- The system searches through pre-embedded technical documentation to provide accurate, version-specific answers.
56
-
57
- ## 🀝 Contributing
58
-
59
- This is an open-source project. Feel free to contribute or report issues on our GitHub repository.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app.py CHANGED
@@ -9,10 +9,11 @@ import os
9
  sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'py'))
10
 
11
  # Import and run the actual app
12
- from frontend.gradio_app import demo
13
 
14
  if __name__ == "__main__":
15
- # Launch with HuggingFace Spaces settings
 
16
  demo.launch(
17
  server_name="0.0.0.0",
18
  server_port=7860,
 
9
  sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'py'))
10
 
11
  # Import and run the actual app
12
+ from frontend.gradio_app import create_gradio_interface
13
 
14
  if __name__ == "__main__":
15
+ # Create and launch the Gradio interface
16
+ demo = create_gradio_interface()
17
  demo.launch(
18
  server_name="0.0.0.0",
19
  server_port=7860,