nixaut-codelabs commited on
Commit
5afa7b1
·
verified ·
1 Parent(s): 688f230

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -17,6 +17,10 @@ import uvicorn
17
  # Load environment variables
18
  load_dotenv()
19
 
 
 
 
 
20
  # Model configuration
21
  MODEL_REPO = "daniel-dona/gemma-3-270m-it"
22
  LOCAL_DIR = os.path.join(os.getcwd(), "local_model")
@@ -327,10 +331,6 @@ async def moderate_content_batch(
327
 
328
  return response_data
329
 
330
- # Create directories if they don't exist
331
- os.makedirs("templates", exist_ok=True)
332
- os.makedirs("static", exist_ok=True)
333
-
334
  # Create the HTML template with Tailwind CSS
335
  with open("templates/index.html", "w") as f:
336
  f.write("""
 
17
  # Load environment variables
18
  load_dotenv()
19
 
20
+ # Create necessary directories
21
+ os.makedirs("templates", exist_ok=True)
22
+ os.makedirs("static", exist_ok=True)
23
+
24
  # Model configuration
25
  MODEL_REPO = "daniel-dona/gemma-3-270m-it"
26
  LOCAL_DIR = os.path.join(os.getcwd(), "local_model")
 
331
 
332
  return response_data
333
 
 
 
 
 
334
  # Create the HTML template with Tailwind CSS
335
  with open("templates/index.html", "w") as f:
336
  f.write("""