kdevoe commited on
Commit
dc78b0a
·
1 Parent(s): ba56c16

Fixing timer

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -15,13 +15,14 @@ def generate_text(prompt):
15
 
16
  # Create a Gradio interface
17
  iface = gr.Interface(
18
- fn=generate_text,
19
- inputs="text",
20
  outputs=[
21
  gr.outputs.Textbox(label="Generated Text"),
22
  gr.outputs.Textbox(label="Response Time")
23
- ],
24
- title="TinyLlama Text Generation")
 
25
 
26
  # Launch the interface
27
  iface.launch()
 
15
 
16
  # Create a Gradio interface
17
  iface = gr.Interface(
18
+ fn=generate_text,
19
+ inputs=gr.inputs.Textbox(lines=2, placeholder="Enter your prompt here..."),
20
  outputs=[
21
  gr.outputs.Textbox(label="Generated Text"),
22
  gr.outputs.Textbox(label="Response Time")
23
+ ],
24
+ title="TinyLlama Text Generation"
25
+ )
26
 
27
  # Launch the interface
28
  iface.launch()