kmkarakaya commited on
Commit
cabc27e
·
1 Parent(s): e528373

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ review_model = TFGPT2LMHeadModel.from_pretrained("kmkarakaya/turkishReviews-ds")
5
  review_tokenizer = AutoTokenizer.from_pretrained("kmkarakaya/turkishReviews-ds")
6
 
7
  def generate_review(prompt):
8
- if prompt="":
9
  prompt = " "
10
  input_ids = review_tokenizer.encode(prompt, return_tensors='tf')
11
  context_length = 40
 
5
  review_tokenizer = AutoTokenizer.from_pretrained("kmkarakaya/turkishReviews-ds")
6
 
7
  def generate_review(prompt):
8
+ if prompt=="":
9
  prompt = " "
10
  input_ids = review_tokenizer.encode(prompt, return_tensors='tf')
11
  context_length = 40