stephenmccartney1234 commited on
Commit
90626d0
·
verified ·
1 Parent(s): c9b535d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ headers = {
9
  "Content-Type": "application/json",
10
  }
11
 
12
- data = {
13
  #"stream": True,
14
  "sourceId": "src_REdjHAwIpm8Lhuk2HAtnm", # Replace with your source ID
15
  "messages": [
@@ -20,7 +20,7 @@ headers = {
20
  ],
21
  }
22
 
23
- url = "https://api.chatpdf.com/v1/chats/message"
24
 
25
  try:
26
  response = requests.post(url, json=data, headers=headers, stream=True)
 
9
  "Content-Type": "application/json",
10
  }
11
 
12
+ data = {
13
  #"stream": True,
14
  "sourceId": "src_REdjHAwIpm8Lhuk2HAtnm", # Replace with your source ID
15
  "messages": [
 
20
  ],
21
  }
22
 
23
+ url = "https://api.chatpdf.com/v1/chats/message"
24
 
25
  try:
26
  response = requests.post(url, json=data, headers=headers, stream=True)