Skip to content

Commit

Permalink
Remove colab as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jingconan committed Apr 21, 2024
1 parent b7ab300 commit 5decd7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import google.generativeai as genai

# Used to securely store your API key
from google.colab import userdata
# from google.colab import userdata
import uvicorn
# Or use `os.getenv('GOOGLE_API_KEY')` to fetch an environment variable.
# GOOGLE_API_KEY=userdata.get('GOOGLE_API_KEY')
Expand Down Expand Up @@ -84,4 +84,4 @@ def do_task(request: Request):
return response.text

if __name__ == "__main__":
uvicorn.run("index:app", host='localhost', port=61001, reload=True)
uvicorn.run("index:app", host='localhost', port=61001, reload=True)
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
fastapi
google.generativeai
google.colab
uvicorn
pandas==0.15.0

0 comments on commit 5decd7b

Please sign in to comment.