Spaces:
Sleeping
Sleeping
robinroy03
commited on
Commit
•
d1d2060
1
Parent(s):
a8e6c78
reqs added and server endpoint moved to /github
Browse files- requirements.txt +18 -0
- server.py +1 -1
requirements.txt
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
blinker==1.8.2
|
2 |
+
certifi==2024.7.4
|
3 |
+
cffi==1.17.0
|
4 |
+
charset-normalizer==3.3.2
|
5 |
+
click==8.1.7
|
6 |
+
cryptography==43.0.0
|
7 |
+
Flask==3.0.3
|
8 |
+
gunicorn==23.0.0
|
9 |
+
idna==3.7
|
10 |
+
itsdangerous==2.2.0
|
11 |
+
Jinja2==3.1.4
|
12 |
+
jwt==1.3.1
|
13 |
+
MarkupSafe==2.1.5
|
14 |
+
packaging==24.1
|
15 |
+
pycparser==2.22
|
16 |
+
requests==2.32.3
|
17 |
+
urllib3==2.2.2
|
18 |
+
Werkzeug==3.0.3
|
server.py
CHANGED
@@ -30,7 +30,7 @@ def post_discussion_comment(discussion_id: str, body: str):
|
|
30 |
requests.post('https://api.github.com/graphql', json={'query': query, 'variables': variables}, headers=headers)
|
31 |
|
32 |
|
33 |
-
@app.route("/", methods=['POST'])
|
34 |
def main():
|
35 |
payload = request.get_json()
|
36 |
URL = "https://api.github.com/graphql"
|
|
|
30 |
requests.post('https://api.github.com/graphql', json={'query': query, 'variables': variables}, headers=headers)
|
31 |
|
32 |
|
33 |
+
@app.route("/github", methods=['POST'])
|
34 |
def main():
|
35 |
payload = request.get_json()
|
36 |
URL = "https://api.github.com/graphql"
|