Spaces:
Running
Running
Added error catching
Browse files
app.py
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
import os
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
from fastapi import FastAPI
|
| 4 |
from pydantic import BaseModel
|
| 5 |
from typing import List
|
| 6 |
-
from supabase import create_client
|
| 7 |
|
|
|
|
| 8 |
import torch
|
| 9 |
import torch.nn as nn
|
| 10 |
from transformers import DistilBertModel, DistilBertTokenizer
|
|
|
|
| 1 |
import os
|
| 2 |
+
import logging
|
| 3 |
+
from contextlib import asynccontextmanager
|
| 4 |
|
| 5 |
+
from fastapi import FastAPI, HTTPException
|
| 6 |
from pydantic import BaseModel
|
| 7 |
from typing import List
|
|
|
|
| 8 |
|
| 9 |
+
from supabase import create_client
|
| 10 |
import torch
|
| 11 |
import torch.nn as nn
|
| 12 |
from transformers import DistilBertModel, DistilBertTokenizer
|