Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from huggingface_hub import from_pretrained_keras
|
|
10 |
model = from_pretrained_keras("Alesteba/deep_model_07")
|
11 |
|
12 |
def predict(prompt):
|
13 |
-
return model.predict(
|
14 |
|
15 |
gr.Interface(fn=predict, inputs="text", outputs="text").launch()
|
16 |
|
|
|
10 |
model = from_pretrained_keras("Alesteba/deep_model_07")
|
11 |
|
12 |
def predict(prompt):
|
13 |
+
return model.predict(prompt)[0]
|
14 |
|
15 |
gr.Interface(fn=predict, inputs="text", outputs="text").launch()
|
16 |
|