Nicholas Meisburger commited on
Commit
bb3a7f9
1 Parent(s): 079c194

update model

Browse files
app.py CHANGED
@@ -1,17 +1,5 @@
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")
@@ -27,7 +15,7 @@ def generate(prompt):
27
  input_tokens=prompt,
28
  prediction_chunk_size=2,
29
  max_predictions=80,
30
- beam_width=3,
31
  )
32
 
33
  for res in stream:
 
1
  import gradio as gr
2
  from transformers import GPT2Tokenizer
 
 
 
 
 
 
 
 
 
 
 
 
3
  from thirdai import bolt, licensing
4
 
5
  licensing.activate("7511CC-0E24D7-69439D-5D6CBA-33AAFD-V3")
 
15
  input_tokens=prompt,
16
  prediction_chunk_size=2,
17
  max_predictions=80,
18
+ beam_width=10,
19
  )
20
 
21
  for res in stream:
generative.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d9b4aab4f77a23d4bcd74ac8b585a7855f61ddf5dfeb3c5ba29fc55e0b3c68cb
3
- size 10526674514
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e427c58d7960ed8f998b818c3528dc0993bf95a5c1a8d75d4965911f981da36b
3
+ size 10526674422
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
  gradio
2
  transformers
 
 
1
  gradio
2
  transformers
3
+ thirdai
thirdai-0.7.18+a1506df-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4b9b69d5bd77b66db4f0cc62ff94ff2666c6d3996bb534ea782cf29b004d283b
3
- size 6137931