GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - morph-data/morph: Python + Markdown framework for building internal apps.

BranchesTags
Open more actions menu

Latest commit

 

History

531 Commits
531 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
core
core
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
License.md
License.md
 
 
README.md
README.md
 
 
mypy.ini
mypy.ini
 
 
poetry.lock
poetry.lock
 
 
poetry.toml
poetry.toml
 
 
pyproject.toml
pyproject.toml
 
 
pytest.ini
pytest.ini
 
 

Repository files navigation

Header

Features

Morph is a python-centric full-stack framework for building and deploying AI apps.

  • Fast to start πŸš€ - Allows you to get up and running with just three commands.
  • Deploy and operate 🌐 - Easily deploy your AI apps and manage them in production. Managed cloud is available for user authentication and secure data connection.
  • No HTML/CSS knowledge requiredπŸ”° - With Markdown-based syntax and pre-made components, you can create flexible, visually appealing designs without writing a single line of HTML or CSS.
  • Customizable πŸ› οΈ - Chain Python and SQL for advanced AI workflows. Custom CSS and custom React components are available for building tailored UI.

Quick start

  1. Install morph
pip install morph-data
  1. Create a new project
morph new
  1. Start dev server
morph serve
  1. Visit http://localhsot:8080 on browser.

How it works

Understanding the concept of developing an AI app in Morph will let you do a flying start.

  1. Develop the AI workflow in Python and give it an alias.
  2. Create an .mdx file. Each .mdx file becomes a page of your app.
  3. Place the component in the MDX file and specify the alias to connect to.
.
β”œβ”€ pages
β”‚  └─ index.mdx
└─ python
   └─ chat.py

Building AI Apps

A little example

  1. Create each files in python and pages directories.

Python: Using Langchain to create a AI workflow.

import morph
from morph import MorphGlobalContext
from morph_lib.stream import stream_chat
from langchain_openai import ChatOpenAI
from langchain_core.messages import HumanMessage

@morph.func
def langchain_chat(context: MorphGlobalContext):
    llm = ChatOpenAI(model="gpt-4o")
    messages = [HumanMessage(context.vars["prompt"])]
    for token in llm.stream(messages):
        yield stream_chat(token.content)

MDX: Define the page and connect the data.

# πŸ¦œπŸ”— Langchain Chat

<Chat postData="langchain_chat" height={300} />
  1. Run morph serve to open the app!

AI App

Documentation

Visit https://docs.morph-data.io for more documentation.

Contributing

Thanks for your interest in helping improve Morph ❀️

  • Before contributing, please read the CONTRIBUTING.md.
  • If you find any issues, please let us know and open an issue.

Lisence

Morph is Apache 2.0 licensed.

About

Python + Markdown framework for building internal apps.

www.morph-data.io/

Topics

data-analysisdata-sciencedata-visualizationdeep-learningdeveloper-toolsgenerative-aimachine-learningmdxmorphpythonreactsql

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

113 stars

Watchers

4 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.