Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from fastapi import FastAPI, File, UploadFile
|
| 2 |
import os
|
| 3 |
import shutil
|
| 4 |
import tempfile
|
|
@@ -15,7 +15,7 @@ async def home():
|
|
| 15 |
return "API Server Running"
|
| 16 |
|
| 17 |
@app.post('/PromptBuddy')
|
| 18 |
-
async def PromptLLM(file: UploadFile = File(...)
|
| 19 |
|
| 20 |
with tempfile.NamedTemporaryFile(delete=False) as temp_file: # Create temporary file
|
| 21 |
temp_file_path = temp_file.name
|
|
|
|
| 1 |
+
from fastapi import FastAPI, File, UploadFile
|
| 2 |
import os
|
| 3 |
import shutil
|
| 4 |
import tempfile
|
|
|
|
| 15 |
return "API Server Running"
|
| 16 |
|
| 17 |
@app.post('/PromptBuddy')
|
| 18 |
+
async def PromptLLM(file: UploadFile = File(...)):
|
| 19 |
|
| 20 |
with tempfile.NamedTemporaryFile(delete=False) as temp_file: # Create temporary file
|
| 21 |
temp_file_path = temp_file.name
|