Spaces:
Runtime error
Runtime error
AmitPress
commited on
Commit
·
69d0603
1
Parent(s):
430d7fc
clone from git
Browse files- app.py +3 -2
- requirements.txt +2 -1
app.py
CHANGED
@@ -3,8 +3,9 @@ import streamlit as st
|
|
3 |
from PIL import Image
|
4 |
import openai
|
5 |
from huggingface_hub import Repository
|
6 |
-
|
7 |
-
|
|
|
8 |
secret_key = repo.get_secret('openapi')
|
9 |
openai.api_key(secret_key)
|
10 |
model = YOLO('resource/twenty-eight-first.pt')
|
|
|
3 |
from PIL import Image
|
4 |
import openai
|
5 |
from huggingface_hub import Repository
|
6 |
+
from git import Repo
|
7 |
+
|
8 |
+
repo = Repository(Repo.clone_from("https://huggingface.co/spaces/AmitPress", "snake-detection"))
|
9 |
secret_key = repo.get_secret('openapi')
|
10 |
openai.api_key(secret_key)
|
11 |
model = YOLO('resource/twenty-eight-first.pt')
|
requirements.txt
CHANGED
@@ -4,4 +4,5 @@ pillow
|
|
4 |
requests
|
5 |
bs4
|
6 |
openai
|
7 |
-
huggingface_hub
|
|
|
|
4 |
requests
|
5 |
bs4
|
6 |
openai
|
7 |
+
huggingface_hub
|
8 |
+
git
|