karalif commited on
Commit
031e6cd
·
verified ·
1 Parent(s): f30bae0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
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
- inputs=gr.TextArea(label="Enter text here:"),
37
- outputs=gr.HTML(),
 
 
 
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=[