Update app.py
Browse files
app.py
CHANGED
@@ -106,6 +106,6 @@ def generate_text(request: GenerateRequest):
|
|
106 |
logger.error(f"Error during text generation: {str(e)}")
|
107 |
raise HTTPException(status_code=500, detail=f"Error during text generation: {str(e)}")
|
108 |
|
109 |
-
@app.
|
110 |
def read_root():
|
111 |
return {"message": "Welcome to the Arabic Text Generation API!"}
|
|
|
106 |
logger.error(f"Error during text generation: {str(e)}")
|
107 |
raise HTTPException(status_code=500, detail=f"Error during text generation: {str(e)}")
|
108 |
|
109 |
+
@app.post("/")
|
110 |
def read_root():
|
111 |
return {"message": "Welcome to the Arabic Text Generation API!"}
|