AmitPress commited on
Commit
d2eaa4a
·
1 Parent(s): 69d0603

clone from git

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +1 -1
app.py CHANGED
@@ -3,9 +3,9 @@ import streamlit as st
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')
 
3
  from PIL import Image
4
  import openai
5
  from huggingface_hub import Repository
6
+ import pygit
7
+ r = pygit.load_repo("https://huggingface.co/spaces/AmitPress/snake-detection")
8
+ repo = Repository(r)
9
  secret_key = repo.get_secret('openapi')
10
  openai.api_key(secret_key)
11
  model = YOLO('resource/twenty-eight-first.pt')
requirements.txt CHANGED
@@ -5,4 +5,4 @@ requests
5
  bs4
6
  openai
7
  huggingface_hub
8
- git
 
5
  bs4
6
  openai
7
  huggingface_hub
8
+ python-git