Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -32,7 +32,7 @@ def transcribe(background_tasks: BackgroundTasks, file: UploadFile = File(...)):
|
|
| 32 |
background_tasks.add_task(transcribe, file)
|
| 33 |
return {"text": "Processing file..."}
|
| 34 |
|
| 35 |
-
@app.get("/
|
| 36 |
def get_text():
|
| 37 |
file = open('/home/user/data/new_file.txt', 'r')
|
| 38 |
content = file.read()
|
|
|
|
| 32 |
background_tasks.add_task(transcribe, file)
|
| 33 |
return {"text": "Processing file..."}
|
| 34 |
|
| 35 |
+
@app.get("/text")
|
| 36 |
def get_text():
|
| 37 |
file = open('/home/user/data/new_file.txt', 'r')
|
| 38 |
content = file.read()
|