Fixing timer
Browse files
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="
|
| 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()
|