yakine commited on
Commit
1a24301
·
verified ·
1 Parent(s): 8a54f9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.get("/")
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!"}