Skip to content

kordless/substrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the Substrate Example Repository

This repository demonstrates how to use the Substrate API with two examples. You can learn how to write and execute Python functions dynamically using different models provided by Substrate. Follow the steps below to get started.

Getting Started

Before you begin, you'll need to sign up and obtain an API key from Substrate. Visit Substrate's website to sign up and retrieve your API key.

Examples

1. Inception Example

Navigate to the inception directory to explore the Inception example, which demonstrates writing and running Python functions.

Steps to Run the Inception Example:

  1. Clone the repository:
    git clone <repo_url>
    
  2. Navigate to the inception directory:
    cd inception
    
  3. Install the required dependencies:
    pip install substrate
    
  4. Run the program:
    python main.py
    
  5. Input your API key when prompted.

View Inception README

2. Chat Example

Navigate to the chat directory to explore the chat example, which showcases a simple chat application using the Llama3Instruct models.

Steps to Run the Chat Example:

  1. Clone the repository (if not already done):

    git clone <repo_url>
    
  2. Navigate to the chat directory:

    cd chat
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    
  4. Run the application:

    python memory70B.py
    

    or

    python nomemory8b.py
    
  5. Input your API key when prompted.

View Chat README

OpenWebUI Example

Navigate to the openwebui directory to explore the OpenWebUI example, which demonstrates setting up a basic web UI.

View OpenWebUI README

Additional Information

  • For more details, refer to the respective README.md files in the inception, chat, and openwebui directories.
  • Visit Substrate's documentation for further guidance.

Happy coding!

About

Uses substrate.run to write and run Python code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors