AhmedSSabir commited on
Commit
daa509a
1 Parent(s): 713f7a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -7,11 +7,13 @@ import os
7
  import gradio as gr
8
  import requests
9
 
 
10
  #url = "https://github.com/simonepri/lm-scorer/tree/master/lm_scorer/models"
11
  #resp = requests.get(url)
12
  from transformers import GPT2Tokenizer, GPT2LMHeadModel
13
  from transformers import T5Tokenizer, AutoModelForCausalLM
14
 
 
15
  from arabert import ArabertPreprocessor
16
  from arabert.aragpt2.grover.modeling_gpt2 import GPT2LMHeadModel
17
 
 
7
  import gradio as gr
8
  import requests
9
 
10
+ from sentence_transformers import SentenceTransformer, util
11
  #url = "https://github.com/simonepri/lm-scorer/tree/master/lm_scorer/models"
12
  #resp = requests.get(url)
13
  from transformers import GPT2Tokenizer, GPT2LMHeadModel
14
  from transformers import T5Tokenizer, AutoModelForCausalLM
15
 
16
+
17
  from arabert import ArabertPreprocessor
18
  from arabert.aragpt2.grover.modeling_gpt2 import GPT2LMHeadModel
19