Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor changes #52

Merged
merged 1 commit into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MinuteMate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ streamlit run app.py
**Back-End
```
cd /MinuteMate/back/
uvicorn main02:app --reload
uvicorn main:app --reload
```


2 changes: 1 addition & 1 deletion MinuteMate/back/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
OPENAI_API_KEY =

# Weaviate cloud deployment
WEAVIATE_URL =
WEAVIATE_ENDPOINT_URL =
WEAVIATE_API_KEY =
4 changes: 2 additions & 2 deletions MinuteMate/back/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
import logging
from typing import Optional, List

from fastapi import FastAPI, HTTPException

Check failure on line 5 in MinuteMate/back/main.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

MinuteMate/back/main.py:5:30: F401 `fastapi.HTTPException` imported but unused

Check failure on line 5 in MinuteMate/back/main.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

MinuteMate/back/main.py:5:30: F401 `fastapi.HTTPException` imported but unused
from fastapi.middleware.cors import CORSMiddleware
from pydantic import BaseModel, Field

import weaviate
from weaviate.classes.init import Auth
from weaviate.classes.query import Rerank, MetadataQuery

Check failure on line 11 in MinuteMate/back/main.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

MinuteMate/back/main.py:11:36: F401 `weaviate.classes.query.Rerank` imported but unused

Check failure on line 11 in MinuteMate/back/main.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

MinuteMate/back/main.py:11:44: F401 `weaviate.classes.query.MetadataQuery` imported but unused

Check failure on line 11 in MinuteMate/back/main.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

MinuteMate/back/main.py:11:36: F401 `weaviate.classes.query.Rerank` imported but unused

Check failure on line 11 in MinuteMate/back/main.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

MinuteMate/back/main.py:11:44: F401 `weaviate.classes.query.MetadataQuery` imported but unused

import openai

Check failure on line 13 in MinuteMate/back/main.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

MinuteMate/back/main.py:13:8: F401 `openai` imported but unused

Check failure on line 13 in MinuteMate/back/main.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

MinuteMate/back/main.py:13:8: F401 `openai` imported but unused
from openai import OpenAI


Expand Down Expand Up @@ -105,7 +105,7 @@

# Initialize clients
self.weaviate_client = WeaviateConfig.get_weaviate_client(
self.WEAVIATE_URL,
self.WEAVIATE_ENDPOINT_URL,
self.WEAVIATE_API_KEY
)
self.openai_client = OpenAI(api_key=self.OPENAI_API_KEY)
Expand All @@ -114,7 +114,7 @@
"""Load and validate environment variables"""
required_vars = [
'OPENAI_API_KEY',
'WEAVIATE_URL',
'WEAVIATE_ENDPOINT_URL',
'WEAVIATE_API_KEY'
]

Expand Down
Loading