Andrey Vorozhko
commited on
Commit
·
b650cfe
1
Parent(s):
2534dd1
Random import fix
Browse files- app.py +0 -1
- how_to_push.txt +2 -0
- util_funcs.py +2 -0
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
import random
|
2 |
import torch
|
3 |
import gradio as gr
|
4 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
|
1 |
import torch
|
2 |
import gradio as gr
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
how_to_push.txt
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
git add app.py
|
2 |
|
3 |
git commit -m "Add application file"
|
|
|
1 |
+
git clone https://huggingface.co/spaces/avorozhko/funbot
|
2 |
+
|
3 |
git add app.py
|
4 |
|
5 |
git commit -m "Add application file"
|
util_funcs.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
def getLengthParam(text: str, tokenizer) -> str:
|
2 |
tokens_count = len(tokenizer.encode(text))
|
3 |
if tokens_count <= 15:
|
|
|
1 |
+
import random
|
2 |
+
|
3 |
def getLengthParam(text: str, tokenizer) -> str:
|
4 |
tokens_count = len(tokenizer.encode(text))
|
5 |
if tokens_count <= 15:
|