Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwyattii committed Nov 27, 2023
1 parent 5b4a81f commit 6dc1a96
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mii/grpc_related/restful_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# DeepSpeed Team
import threading
import time
import asyncio

from flask import Flask, request, jsonify
from flask_restful import Resource, Api
Expand All @@ -20,12 +19,9 @@ def shutdown(thread):


def createRestfulGatewayApp(deployment_name, server_thread):
# client must be thread-safe

class RestfulGatewayService(Resource):
def __init__(self):
super().__init__()
asyncio.set_event_loop(asyncio.SelectorEventLoop())
self.client = mii.client(deployment_name)

def post(self):
Expand Down

0 comments on commit 6dc1a96

Please sign in to comment.