Nicholas Meisburger commited on
Commit
88b191b
1 Parent(s): e4d1a07

try hack to install thirdai wheel

Browse files
Files changed (2) hide show
  1. app.py +13 -1
  2. requirements.txt +0 -1
app.py CHANGED
@@ -1,6 +1,18 @@
1
  import gradio as gr
2
- from thirdai import bolt, licensing
3
  from transformers import GPT2Tokenizer
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  licensing.activate("7511CC-0E24D7-69439D-5D6CBA-33AAFD-V3")
6
 
 
1
  import gradio as gr
 
2
  from transformers import GPT2Tokenizer
3
+ import os
4
+
5
+ os.system(
6
+ "pip3 install thirdai-0.7.18+a1506df-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
7
+ )
8
+
9
+ import importlib
10
+ import site
11
+
12
+ importlib.reload(site)
13
+
14
+
15
+ from thirdai import bolt, licensing
16
 
17
  licensing.activate("7511CC-0E24D7-69439D-5D6CBA-33AAFD-V3")
18
 
requirements.txt CHANGED
@@ -1,3 +1,2 @@
1
  gradio
2
  transformers
3
- https://huggingface.co/spaces/thirdai/thirdai-llm/blob/main/thirdai-0.7.18%2Ba1506df-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
 
1
  gradio
2
  transformers