dusaurabh commited on
Commit
6a668c3
1 Parent(s): cd6127f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -225,9 +225,9 @@ description = "Simple ChatGPT"
225
  examples = [["We cannot, sir, we are undone already."], ["Ye're long about it."]]
226
 
227
  demo = gr.Interface(
228
- inference,
229
- inputs=gr.Interface(type='text',label="Input text"),
230
- outputs=gr.Interface(type='text',label="Output text"),
231
  title=title,
232
  description=description,
233
  examples=examples,
 
225
  examples = [["We cannot, sir, we are undone already."], ["Ye're long about it."]]
226
 
227
  demo = gr.Interface(
228
+ fn=inference,
229
+ inputs=gr.inputs.Textbox(placeholder="Enter text here...", label="Input Text"), # Input component
230
+ outputs=gr.outputs.Textbox(label="Output text"),
231
  title=title,
232
  description=description,
233
  examples=examples,