Obai33 commited on
Commit
e69c39b
1 Parent(s): 5e339ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -79,6 +79,7 @@ total_words = tokenizer.vocab_size
79
  xs, labels = input_sequences[:, :-1], input_sequences[:, -1]
80
  ys = tf.keras.utils.to_categorical(labels, num_classes=total_words)
81
 
 
82
 
83
  ##############
84
 
@@ -94,8 +95,11 @@ response = requests.get(url)
94
  with open(local_filename, 'wb') as f:
95
  f.write(response.content)
96
 
 
 
97
  # Load the pre-trained model
98
  model = tf.keras.models.load_model(local_filename)
 
99
 
100
  ##############
101
 
@@ -121,6 +125,7 @@ def generate_arabic_text(seed_text, next_words=50):
121
  return reconnected_text, t_text
122
 
123
  import gradio as gr
 
124
 
125
  # Update Gradio interface to include both Arabic and English outputs
126
  iface = gr.Interface(
 
79
  xs, labels = input_sequences[:, :-1], input_sequences[:, -1]
80
  ys = tf.keras.utils.to_categorical(labels, num_classes=total_words)
81
 
82
+ print('error not here')
83
 
84
  ##############
85
 
 
95
  with open(local_filename, 'wb') as f:
96
  f.write(response.content)
97
 
98
+ print('error not here')
99
+
100
  # Load the pre-trained model
101
  model = tf.keras.models.load_model(local_filename)
102
+ print('error not here')
103
 
104
  ##############
105
 
 
125
  return reconnected_text, t_text
126
 
127
  import gradio as gr
128
+ print('error not here')
129
 
130
  # Update Gradio interface to include both Arabic and English outputs
131
  iface = gr.Interface(