Spaces:
Paused
Paused
Update app.py
Browse filesadd examples and placeholder input text
app.py
CHANGED
@@ -20,5 +20,14 @@ def get_model_summary(model_name):
|
|
20 |
return str(model)
|
21 |
|
22 |
# Create the Gradio interface
|
23 |
-
interface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
interface.launch()
|
|
|
20 |
return str(model)
|
21 |
|
22 |
# Create the Gradio interface
|
23 |
+
interface = gr.Interface(
|
24 |
+
fn=get_model_summary,
|
25 |
+
inputs=gr.inputs.Textbox(lines=1, placeholder="Enter model name...", label="Model Name"),
|
26 |
+
outputs="text"),
|
27 |
+
examples=[
|
28 |
+
["google/gemma-7b"],
|
29 |
+
["microsoft/Phi-3-mini-4k-instruct"],
|
30 |
+
["google/paligemma-3b-mix-224"],
|
31 |
+
["microsoft/Phi-3-vision-128k-instruct"]
|
32 |
+
]
|
33 |
interface.launch()
|