Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -45,5 +45,5 @@ reconstructed_model = keras.models.load_model("poems_generation_GRU (1).h5")
|
|
45 |
def generate_poem(start,temperature):
|
46 |
return generate_text(reconstructed_model,temperature, start_string=u""+start )
|
47 |
|
48 |
-
iface = gr.Interface(fn=generate_poem, inputs=["text",gr.Slider(0, 1, value=1)],outputs=
|
49 |
iface.launch()
|
|
|
45 |
def generate_poem(start,temperature):
|
46 |
return generate_text(reconstructed_model,temperature, start_string=u""+start )
|
47 |
|
48 |
+
iface = gr.Interface(fn=generate_poem, inputs=["text",gr.Slider(0, 1, value=1)],outputs= "text")
|
49 |
iface.launch()
|