simonza commited on
Commit
71e2e6b
1 Parent(s): bf68054

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -121,7 +121,7 @@ def img_to_file_list(imgs):
121
 
122
  img_files = {'search'+str(counter["dir_num"]):[]}
123
  i = 0
124
- curr_dir = os.getcwd()
125
  for img in imgs:
126
  img.save(sub_path+"/img_" + str(i) + ".png","PNG")
127
  img_files['search'+str(counter["dir_num"])].append(sub_path + '/' + 'img_'+ str(i) + ".png")
@@ -131,10 +131,10 @@ def img_to_file_list(imgs):
131
 
132
  return img_files['search'+str(counter["dir_num"]-1)]
133
 
 
134
  import gradio as gr
135
  from deep_translator import GoogleTranslator
136
 
137
-
138
  counter = {"dir_num": 1}
139
  img_files = {'x':[]}
140
 
 
121
 
122
  img_files = {'search'+str(counter["dir_num"]):[]}
123
  i = 0
124
+
125
  for img in imgs:
126
  img.save(sub_path+"/img_" + str(i) + ".png","PNG")
127
  img_files['search'+str(counter["dir_num"])].append(sub_path + '/' + 'img_'+ str(i) + ".png")
 
131
 
132
  return img_files['search'+str(counter["dir_num"]-1)]
133
 
134
+
135
  import gradio as gr
136
  from deep_translator import GoogleTranslator
137
 
 
138
  counter = {"dir_num": 1}
139
  img_files = {'x':[]}
140