Sephfox commited on
Commit
820534b
·
verified ·
1 Parent(s): 2d3d752

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -23,7 +23,7 @@ warnings.filterwarnings('ignore', category=FutureWarning, module='huggingface_hu
23
  nltk.download('vader_lexicon', quiet=True)
24
  nltk.download('punkt', quiet=True)
25
 
26
- ef download_spacy_model():
27
  subprocess.check_call([sys.executable, "-m", "spacy", "download", "en_core_web_sm"])
28
 
29
  try:
@@ -156,6 +156,7 @@ def evaluate(individual):
156
  intensity_range = max(intensities) - min(intensities)
157
 
158
  return ideal_diff, sum_non_ideal, intensity_range
 
159
  def evolve_emotions():
160
  toolbox = base.Toolbox()
161
  toolbox.register("attr_float", random.uniform, 0, 20)
@@ -321,4 +322,4 @@ iface = gr.Interface(
321
  )
322
 
323
  if __name__ == "__main__":
324
- iface.launch()
 
23
  nltk.download('vader_lexicon', quiet=True)
24
  nltk.download('punkt', quiet=True)
25
 
26
+ def download_spacy_model():
27
  subprocess.check_call([sys.executable, "-m", "spacy", "download", "en_core_web_sm"])
28
 
29
  try:
 
156
  intensity_range = max(intensities) - min(intensities)
157
 
158
  return ideal_diff, sum_non_ideal, intensity_range
159
+
160
  def evolve_emotions():
161
  toolbox = base.Toolbox()
162
  toolbox.register("attr_float", random.uniform, 0, 20)
 
322
  )
323
 
324
  if __name__ == "__main__":
325
+ iface.launch()