Spaces:
Bagda
/
Build error

Bagda commited on
Commit
00ca540
·
verified ·
1 Parent(s): 3895969

Delete main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -25
main.py DELETED
@@ -1,25 +0,0 @@
1
- from fastapi import FastAPI, Form
2
- from fastapi.responses import FileResponse, HTMLResponse
3
- import os
4
-
5
- app = FastAPI()
6
-
7
- @app.get("/", response_class=HTMLResponse)
8
- def home():
9
- return """
10
- <html>
11
- <head><title>Hindi Dubber AI</title></head>
12
- <body>
13
- <h1>YouTube to Hindi Dubber</h1>
14
- <form method="post">
15
- <input type="text" name="url" placeholder="Paste YouTube video link here" size="60"/>
16
- <button type="submit">Submit</button>
17
- </form>
18
- </body>
19
- </html>
20
- """
21
-
22
- @app.post("/")
23
- def process(url: str = Form(...)):
24
- # Dummy response for now
25
- return {"status": "processing", "url": url}