Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ print('error not here')
|
|
84 |
##############
|
85 |
|
86 |
import requests
|
87 |
-
|
88 |
# URL of the model
|
89 |
url = 'https://github.com/Obai33/NLP_PoemGenerationDatasets/raw/main/modelarab1.h5'
|
90 |
# Local file path to save the model
|
@@ -94,8 +94,8 @@ local_filename = 'modelarab1.h5'
|
|
94 |
response = requests.get(url)
|
95 |
with open(local_filename, 'wb') as f:
|
96 |
f.write(response.content)
|
97 |
-
|
98 |
-
model = tf.keras.models.load_model(
|
99 |
|
100 |
|
101 |
|
|
|
84 |
##############
|
85 |
|
86 |
import requests
|
87 |
+
'''
|
88 |
# URL of the model
|
89 |
url = 'https://github.com/Obai33/NLP_PoemGenerationDatasets/raw/main/modelarab1.h5'
|
90 |
# Local file path to save the model
|
|
|
94 |
response = requests.get(url)
|
95 |
with open(local_filename, 'wb') as f:
|
96 |
f.write(response.content)
|
97 |
+
'''
|
98 |
+
model = tf.keras.models.load_model(my_model)
|
99 |
|
100 |
|
101 |
|