This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from pathlib import Path | |
from flet import icons, flet, Page, Row, ElevatedButton, GridView, TextButton, TextField | |
def setup_page(page: Page): | |
page.theme_mode = "dark" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import gradio as gr | |
url = "http://localhost:11434/api/generate" | |
headers = { | |
'Content-Type': 'application/json', | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mcp.server.fastmcp import FastMCP | |
import time | |
import signal | |
import sys | |
# Handle SIGINT (Ctrl+C) gracefully | |
def signal_handler(sig, frame): | |
print("Shutting down server gracefully...") | |
sys.exit(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"mcpServers": { | |
"count-r": { | |
"command": "python", | |
"args": [ | |
"C:\\Users\\mberm\\count-r-server\\server.py" | |
], | |
"host": "127.0.0.1", | |
"port": 8080, | |
"timeout": 30000 |
OlderNewer