memorychat / MANUAL_UPLOAD.md
artecnosomatic's picture
Initial commit: Memory Chat application
0919d5b

A newer version of the Gradio SDK is available: 6.12.0

Upgrade

Manual Upload to Hugging Face Spaces

Quick Manual Upload Process

Step 1: Create Your Space

  1. Go to: https://huggingface.co/spaces
  2. Sign in to your Hugging Face account
  3. Click "Create new Space" (top right)
  4. Set Space Name: Choose a name (e.g., your-username/memory-chat)
  5. Select Type: Choose "Gradio"
  6. Set Visibility: Select "Public"
  7. Click "Create Space"

Step 2: Upload Files

In your new Space:

  1. Click "Files and versions" tab
  2. Click "Upload file"
  3. Upload these files:
File Description
app.py Main application
memory_manager.py Memory storage system
chat_interface.py Hugging Face integration
config.py Configuration settings
requirements.txt Python dependencies
README.md Documentation
  1. For each file:
    • Click "Upload file"
    • Select the file from your computer
    • Add commit message: "Add [filename]"
    • Click "Commit changes"

Step 3: Wait for Build

  1. Go to "Logs" tab to monitor the build
  2. Wait 3-5 minutes for the first build
  3. Check for any errors in the logs

Step 4: Access Your Space

Once built, your Space will be live at:

https://huggingface.co/spaces/your-username/memory-chat

File Contents Summary

app.py (10KB)

  • Main application optimized for HF Spaces
  • Memory management and chat interface
  • Gradio UI with multiple tabs

memory_manager.py (7.7KB)

  • Vector embeddings for memory storage
  • FAISS indexing for fast retrieval
  • Persistent JSON storage

chat_interface.py (3.8KB)

  • Hugging Face model integration
  • DialoGPT model loading
  • Response generation

config.py (1.2KB)

  • Application configuration
  • Model settings and memory parameters

requirements.txt (238B)

  • Python dependencies for HF Spaces
  • Optimized for Spaces environment

README.md (1.3KB)

  • User documentation
  • Usage instructions

Troubleshooting

Build Failures

  • Check "Logs" tab for error messages
  • Ensure all files are uploaded correctly
  • Verify requirements.txt format

Model Loading Issues

  • First-time loading may be slow (30-60 seconds)
  • Application has fallback modes
  • Check internet connection

Memory Issues

  • Ensure app.py is uploaded (not space_app.py)
  • Check file permissions
  • Verify /tmp/memories directory access

Success Indicators

Build Success: "Build completed successfully" in logs ✅ App Running: "App is running on port 7860" ✅ Space Live: URL accessible and interactive

After Deployment

  1. Test the chat functionality
  2. Verify memory recording
  3. Share your Space URL
  4. Monitor usage in dashboard

Your Memory Chat application is ready for upload! 🚀