llm-discord-bot / health_check.py
chansung's picture
Update health_check.py
f0cb63b
raw
history blame
705 Bytes
# import sys
# from http.server import BaseHTTPRequestHandler, HTTPServer
# class S(BaseHTTPRequestHandler):
# def _set_headers(self):
# self.send_response(200)
# self.send_header('Content-type', 'application/json')
# self.end_headers()
# def do_GET(self):
# self._set_headers()
# self.wfile.write(b"")
# def run_dummy_server(server_class=HTTPServer, handler_class=S, port=7860):
# server_address = ('', port)
# httpd = server_class(server_address, handler_class)
# print( 'Starting httpd...')
# httpd.serve_forever()
# run_dummy_server()
import gradio as gr
with gr.Blocks() as demo:
gr.Markdown("# Hello World")
demo.launch()