Skip to content
/ sol-mate Public

A Modal service that returns weather data.

License

Notifications You must be signed in to change notification settings

blixt/sol-mate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sol Mate service

This service powers the Sol Mate GPT. It uses Modal because it's one of the easiest ways to run a simple service like this.

The output has been specifically formatted in a way that helps GPT visually describe the weather to Dall·E. This output can probably be used to describe the weather for any other LLM-related purpose.

Running it

Make sure you have uv installed, then:

uv sync
uv run modal run sol_mate.py

Example output:

✓ Initialized.
✓ Created objects.
├── 🔨 Created mount sol_mate.py
├── 🔨 Created mount PythonPackage:tz
└── 🔨 Created web function weather_api
The weather for {'latitude': 40.7128, 'longitude': -74.006, ...}:
Temperature: 34°F
Weather condition: mainly clear
The local time is 12:34 on a Sunday in January.
The sun is high in the sky.
The sky is partly cloudy.
There's a light breeze gently blowing.
✓ App completed.

About

A Modal service that returns weather data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages