Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,6 +13,7 @@ from langchain_openai import ChatOpenAI
|
|
| 13 |
|
| 14 |
chat = ChatOpenAI()
|
| 15 |
|
|
|
|
| 16 |
class TextTranslator(BaseModel):
|
| 17 |
output: str = Field(description="Python string containing the output text translated in the desired language")
|
| 18 |
|
|
|
|
| 13 |
|
| 14 |
chat = ChatOpenAI()
|
| 15 |
|
| 16 |
+
# Define the Pydantic Model
|
| 17 |
class TextTranslator(BaseModel):
|
| 18 |
output: str = Field(description="Python string containing the output text translated in the desired language")
|
| 19 |
|