Aksh1t commited on
Commit
8005403
1 Parent(s): 7076dbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -16,7 +16,7 @@ async def generate_text(prompt):
16
 
17
  # Create Gradio interface
18
  inputs = gr.Textbox(label="Enter a prompt", lines=2)
19
- outputs = gr.Textbox(label="Generated Text", placeholder="Generated text will appear here", readonly=True)
20
 
21
  def predict(prompt):
22
  output_text = asyncio.run(generate_text(prompt))
@@ -26,3 +26,4 @@ iface = gr.Interface(fn=predict, inputs=inputs, outputs=outputs, title="Hugging
26
 
27
  if __name__ == "__main__":
28
  iface.launch()
 
 
16
 
17
  # Create Gradio interface
18
  inputs = gr.Textbox(label="Enter a prompt", lines=2)
19
+ outputs = gr.Textbox(label="Generated Text", placeholder="Generated text will appear here", disabled=True)
20
 
21
  def predict(prompt):
22
  output_text = asyncio.run(generate_text(prompt))
 
26
 
27
  if __name__ == "__main__":
28
  iface.launch()
29
+