Rename disabled.py to main.py
Browse files- disabled.py → main.py +1 -3
disabled.py → main.py
RENAMED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
'''
|
| 2 |
import os # Import the os module for working with the operating system
|
| 3 |
from fastapi import FastAPI, HTTPException # Import necessary modules from FastAPI
|
| 4 |
from pydantic import BaseModel # Import BaseModel from pydantic for data validation
|
|
@@ -131,5 +130,4 @@ async def generate_text(item: Item = None):
|
|
| 131 |
raise HTTPException(status_code=401, detail="Valid key is required.")
|
| 132 |
|
| 133 |
if __name__ == "__main__":
|
| 134 |
-
uvicorn.run(app, host="0.0.0.0", port=8000)
|
| 135 |
-
'''
|
|
|
|
|
|
|
| 1 |
import os # Import the os module for working with the operating system
|
| 2 |
from fastapi import FastAPI, HTTPException # Import necessary modules from FastAPI
|
| 3 |
from pydantic import BaseModel # Import BaseModel from pydantic for data validation
|
|
|
|
| 130 |
raise HTTPException(status_code=401, detail="Valid key is required.")
|
| 131 |
|
| 132 |
if __name__ == "__main__":
|
| 133 |
+
uvicorn.run(app, host="0.0.0.0", port=8000)
|
|
|