fahmifauzi commited on
Commit
6f797c1
·
verified ·
1 Parent(s): af1bed7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,11 +26,11 @@ import gradio as gr
26
 
27
  gr.close_all()
28
  demo = gr.Interface(fn=generate_text,
29
- inputs=[gr.Textbox(label="Prompt", lines=5)],
30
- outputs=[gr.Textbox(label="Generated Text", lines=5)],
31
  title="Text Generator",
32
  description="Text generation using `mistralai/Mistral-7B-Instruct-v0.1` model.",
33
- examples=["I like ice cream", "That cat is cute"]
34
  )
35
 
36
  demo.launch()
 
26
 
27
  gr.close_all()
28
  demo = gr.Interface(fn=generate_text,
29
+ inputs=[gr.Textbox(label="Prompt", lines=5, placeholder="Enter your text here...")],
30
+ outputs=[gr.Textbox(label="Generated Text", lines=5, placeholder="Result")],
31
  title="Text Generator",
32
  description="Text generation using `mistralai/Mistral-7B-Instruct-v0.1` model.",
33
+ examples=["I like ice cream", "That cat is cute"],
34
  )
35
 
36
  demo.launch()