Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def sentiment_analysis_ep(content: Text = None):
|
|
44 |
return JSONResponse(content=res)
|
45 |
|
46 |
|
47 |
-
@app.post("/
|
48 |
def chat_pdf_ep(content: Text = None):
|
49 |
url = 'https://api.openai.com/v1/chat/completions'
|
50 |
messages = [
|
|
|
44 |
return JSONResponse(content=res)
|
45 |
|
46 |
|
47 |
+
@app.post("/chatpdf")
|
48 |
def chat_pdf_ep(content: Text = None):
|
49 |
url = 'https://api.openai.com/v1/chat/completions'
|
50 |
messages = [
|