Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,11 +30,15 @@ description_html = """
|
|
| 30 |
<img src='http://www.ru.is/media/HR_logo_vinstri_transparent.png' width='250' height='auto'>
|
| 31 |
</center>
|
| 32 |
"""
|
|
|
|
| 33 |
|
| 34 |
demo = gr.Interface(
|
| 35 |
-
fn=predict,
|
| 36 |
-
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
| 38 |
##outputs=gr.TextArea(label="Feedback on text input:"),
|
| 39 |
description=description_html,
|
| 40 |
examples=[
|
|
|
|
| 30 |
<img src='http://www.ru.is/media/HR_logo_vinstri_transparent.png' width='250' height='auto'>
|
| 31 |
</center>
|
| 32 |
"""
|
| 33 |
+
textbox = gr.Textbox()
|
| 34 |
|
| 35 |
demo = gr.Interface(
|
| 36 |
+
#fn=predict,
|
| 37 |
+
fn=generate_text,
|
| 38 |
+
#inputs=gr.TextArea(label="Enter text here:"),
|
| 39 |
+
input=textbox,
|
| 40 |
+
#outputs=gr.HTML(),
|
| 41 |
+
outputs=textbox,
|
| 42 |
##outputs=gr.TextArea(label="Feedback on text input:"),
|
| 43 |
description=description_html,
|
| 44 |
examples=[
|