Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,11 +30,12 @@ def generate_responses(prompt):
|
|
30 |
# Gradio interface setup
|
31 |
interface = gr.Interface(
|
32 |
fn=generate_responses,
|
33 |
-
inputs=gr.
|
34 |
-
outputs=gr.
|
35 |
title="Tokenizer Comparison",
|
36 |
description="Compare model outputs with different tokenizers"
|
37 |
)
|
38 |
|
39 |
# Launch the Gradio interface
|
40 |
interface.launch()
|
|
|
|
30 |
# Gradio interface setup
|
31 |
interface = gr.Interface(
|
32 |
fn=generate_responses,
|
33 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter your prompt here..."),
|
34 |
+
outputs=gr.JSON(),
|
35 |
title="Tokenizer Comparison",
|
36 |
description="Compare model outputs with different tokenizers"
|
37 |
)
|
38 |
|
39 |
# Launch the Gradio interface
|
40 |
interface.launch()
|
41 |
+
|