RandomCatLover commited on
Commit
16c377e
1 Parent(s): e302c19
Files changed (2) hide show
  1. app.py +23 -0
  2. requirements.txt +4 -0
app.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ destination = 'core'
4
+
5
+ if os.path.exists('.env'):
6
+ from dotenv import load_dotenv
7
+ load_dotenv()
8
+
9
+ if not os.path.exists(destination):
10
+ import subprocess
11
+ repo_url = os.getenv("GIT_CORE")
12
+ command = f'git clone {repo_url} {destination}'
13
+ try:
14
+ subprocess.check_output(command, stderr=subprocess.STDOUT, shell=True)#, env=env)
15
+ print('Repository cloned successfully.')
16
+ except subprocess.CalledProcessError as e:
17
+ print(f'Error cloning repository: {e.output.decode()}')
18
+
19
+ from core.s import demo
20
+
21
+ demo.queue(concurrency_count=3)
22
+ #demo.launch(auth=("student", "whataday"))
23
+ demo.launch()
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ gradio==3.30.0
2
+ matplotlib==3.7.1
3
+ shap==0.41.0
4
+ transformers==4.27.4