souljoy commited on
Commit
ee6d080
·
1 Parent(s): 45917d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- 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 ' + authorization
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