Karumoon commited on
Commit
a5249f1
1 Parent(s): 227e951

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -45,14 +45,24 @@ proc1=gr.Interface.load(f"models/{model_1}",live=False,preprocess=True, postproc
45
 
46
  #pipe = pipeline("translation", model="t5-base")
47
 
 
 
 
 
 
 
 
 
 
 
48
  def bbb22(text):
49
 
50
  return text[::-1]
51
  def iimg(text):
52
- print("\n\nvvv"+text+"\n\n")
53
  #img1.update(proc1("girl"))
54
  #german.update("soijfoijf")
55
- img0=proc1("girl")
56
  return img0#pipe(text)[0]["translation_text"]
57
 
58
 
 
45
 
46
  #pipe = pipeline("translation", model="t5-base")
47
 
48
+
49
+ def randStr():
50
+ pp=["a","b","c","d","e","f","g","h"]
51
+ str="";
52
+ str+=random.choise(pp)+random.choise(pp)+random.choise(pp)+random.choise(pp)
53
+ str+=random.choise(pp)+random.choise(pp)+random.choise(pp)+random.choise(pp)
54
+ str+=random.choise(pp)+random.choise(pp)+random.choise(pp)+random.choise(pp)
55
+ str+=random.choise(pp)+random.choise(pp)+random.choise(pp)+random.choise(pp)
56
+ return str
57
+
58
  def bbb22(text):
59
 
60
  return text[::-1]
61
  def iimg(text):
62
+ print("\n\nvvv"+text+randStr+"\n\n")
63
  #img1.update(proc1("girl"))
64
  #german.update("soijfoijf")
65
+ img0=proc1("girl "+randStr)
66
  return img0#pipe(text)[0]["translation_text"]
67
 
68