Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,14 +5,14 @@ import requests
|
|
| 5 |
import json
|
| 6 |
import gradio as gr
|
| 7 |
|
| 8 |
-
with open('chatGPT/Authorization', mode='r', encoding='utf-8') as f:
|
| 9 |
-
|
| 10 |
-
|
| 11 |
|
| 12 |
url = 'https://api.openai.com/v1/chat/completions'
|
| 13 |
headers = {
|
| 14 |
'Content-Type': 'application/json',
|
| 15 |
-
'Authorization': 'Bearer ' +
|
| 16 |
}
|
| 17 |
|
| 18 |
|
|
|
|
| 5 |
import json
|
| 6 |
import gradio as gr
|
| 7 |
|
| 8 |
+
# with open('chatGPT/Authorization', mode='r', encoding='utf-8') as f:
|
| 9 |
+
# for line in f:
|
| 10 |
+
# authorization = line.strip()
|
| 11 |
|
| 12 |
url = 'https://api.openai.com/v1/chat/completions'
|
| 13 |
headers = {
|
| 14 |
'Content-Type': 'application/json',
|
| 15 |
+
'Authorization': 'Bearer ' + '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'
|
| 16 |
}
|
| 17 |
|
| 18 |
|