shellypeng commited on
Commit
c73cdf1
·
1 Parent(s): 99e6d28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -15
app.py CHANGED
@@ -1,15 +1,12 @@
1
- # -*- coding: utf-8 -*-
2
- """Unt24314212442itled0.ipynb
3
-
4
- Automatically generated by Colaboratory.
5
-
6
- Original file is located at
7
- https://colab.research.google.com/drive/1ESP90X7oIWvzEaEYUbh2Lp05cgpXSnZ8
8
- """
9
- import gradio as gr
10
- import os
11
-
12
-
13
- HF_TOKEN = os.environ.get("HUGGING_FACE_HUB_TOKEN")
14
-
15
- gr.load("shellypeng/Anime-AI-Pack", src="spaces", hf_token=os.environ["HUGGING_FACE_HUB_TOKEN"]).launch(debug=True, share=True)
 
1
+ from huggingface_hub import Repository
2
+
3
+ repo = Repository(
4
+ local_dir="anime-pack-app-py",
5
+ repo_type="model",
6
+ clone_from="shellypeng/anime-pack-app-py",
7
+ token=True
8
+ )
9
+ repo.git_pull()
10
+
11
+ from anime-pack-app-py import model
12
+ model.run()