cutycat2000x commited on
Commit
534b6e8
·
verified ·
1 Parent(s): b2ebd1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -2,6 +2,7 @@ from flask import Flask, request, Response
2
  import requests
3
  import asyncio
4
  import os
 
5
 
6
  request_count = {}
7
  ongoing_requests = {}
@@ -17,6 +18,7 @@ CHAT_UI_HOST = 'cutycat2000x-instantchat.static.hf.space'
17
  def handle_request(path=""):
18
  chat_ui_url = f'https://{DISCORD_ROCKS_HOST}/{path}'
19
  ip = request.remote_addr
 
20
  method = request.method
21
  data = request.data
22
  params = request.args
 
2
  import requests
3
  import asyncio
4
  import os
5
+ import json
6
 
7
  request_count = {}
8
  ongoing_requests = {}
 
18
  def handle_request(path=""):
19
  chat_ui_url = f'https://{DISCORD_ROCKS_HOST}/{path}'
20
  ip = request.remote_addr
21
+ print(ip)
22
  method = request.method
23
  data = request.data
24
  params = request.args