Karim-Gamal commited on
Commit
853afe5
·
1 Parent(s): 04b0fde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -238,20 +238,20 @@ def _method(text):
238
  try:
239
  # code that may raise an exception
240
  d = output_temp[0]
241
- except:
242
- pass
243
 
 
 
 
 
 
 
 
 
 
244
 
245
- # try:
246
- # Extract the text from the 'generated_text' key
247
- text = d['generated_text']
248
- # except:
249
- # pass
250
-
251
- # my_dict = {}
252
- # my_dict[str(text_to_emoji[text.split(' ')[0]])] = 0.99
253
- return text_to_emoji[text.split(' ')[0]]
254
-
255
 
256
  # greet("sun")
257
 
 
238
  try:
239
  # code that may raise an exception
240
  d = output_temp[0]
241
+
 
242
 
243
+ # try:
244
+ # Extract the text from the 'generated_text' key
245
+ text = d['generated_text']
246
+ # except:
247
+ # pass
248
+
249
+ # my_dict = {}
250
+ # my_dict[str(text_to_emoji[text.split(' ')[0]])] = 0.99
251
+ return text_to_emoji[text.split(' ')[0]]
252
 
253
+ except:
254
+ pass
 
 
 
 
 
 
 
 
255
 
256
  # greet("sun")
257