Spaces:
Sleeping
Sleeping
File size: 604 Bytes
9e88eab be0ac49 9e88eab be0ac49 9e88eab be0ac49 9e88eab be0ac49 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import os
import json
from typing import List, Optional
from pydantic import BaseModel, Field, conlist
from enum import Enum
class BimDiscipline(str, Enum):
plumbing = 'S - Sanitär'
network = 'D - Datennetz'
heating = 'H - Heizung'
electrical = 'E - Elektro'
ventilation = 'L - Lüftung'
architecture = 'A - Architektur'
# Define the schema for the output.
class Metadata(BaseModel):
title: str = Field(description='Title of the document')
summary: str = Field(description='One sentence short summary of the document information')
discipline: BimDiscipline
|