Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ ASSISTANT_PIC_PATH = "https://huggingface.co/spaces/PLRMB/P-MSQ-API-PREVIEW/reso
|
|
| 15 |
USER_PIC_PATH = "https://huggingface.co/spaces/PLRMB/P-MSQ-API-PREVIEW/resolve/main/usr.png"
|
| 16 |
|
| 17 |
def authorize(api_key):
|
| 18 |
-
test_data = {"
|
| 19 |
test_headers = {
|
| 20 |
"Authorization": f"{API_TOKEN}",
|
| 21 |
"Content-Type": "application/json",
|
|
@@ -98,6 +98,7 @@ with gr.Blocks(css=".chatbox {height: 400px; overflow-y: auto; border: 1px solid
|
|
| 98 |
|
| 99 |
with gr.Column(visible=True) as auth_view:
|
| 100 |
gr.Markdown("## P-MSQ Authorization")
|
|
|
|
| 101 |
api_key_input = gr.Textbox(placeholder="Enter your API key or enter your Discord UserID", label="API Key/User ID")
|
| 102 |
auth_button = gr.Button("Authorize")
|
| 103 |
|
|
|
|
| 15 |
USER_PIC_PATH = "https://huggingface.co/spaces/PLRMB/P-MSQ-API-PREVIEW/resolve/main/usr.png"
|
| 16 |
|
| 17 |
def authorize(api_key):
|
| 18 |
+
test_data = {"kind": "PER_DATA","identificator": f"{api_key}"}
|
| 19 |
test_headers = {
|
| 20 |
"Authorization": f"{API_TOKEN}",
|
| 21 |
"Content-Type": "application/json",
|
|
|
|
| 98 |
|
| 99 |
with gr.Column(visible=True) as auth_view:
|
| 100 |
gr.Markdown("## P-MSQ Authorization")
|
| 101 |
+
gr.Markdown("P-MSQ is in closed alpha test! The model, api and more are subject to change")
|
| 102 |
api_key_input = gr.Textbox(placeholder="Enter your API key or enter your Discord UserID", label="API Key/User ID")
|
| 103 |
auth_button = gr.Button("Authorize")
|
| 104 |
|