Spaces:
Sleeping
Sleeping
added debug statement
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ model = tf.keras.models.load_model('samplemodel01.keras')
|
|
6 |
|
7 |
def prediction(x):
|
8 |
a2 = [[int(x)]]
|
9 |
-
|
10 |
a2 = tf.convert_to_tensor(a2)
|
11 |
return model.predict(a2)
|
12 |
|
@@ -17,4 +17,4 @@ demo = gr.Interface(
|
|
17 |
outputs=["text"]
|
18 |
)
|
19 |
|
20 |
-
demo.launch(server_name="0.0.0.0", share=True)
|
|
|
6 |
|
7 |
def prediction(x):
|
8 |
a2 = [[int(x)]]
|
9 |
+
print (a2)
|
10 |
a2 = tf.convert_to_tensor(a2)
|
11 |
return model.predict(a2)
|
12 |
|
|
|
17 |
outputs=["text"]
|
18 |
)
|
19 |
|
20 |
+
demo.launch(server_name="0.0.0.0", share=True)
|