dwb2023 commited on
Commit
48ed837
1 Parent(s): afca0e4

Update app.py

Browse files

add examples and placeholder input text

Files changed (1) hide show
  1. app.py +10 -1
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(fn=get_model_summary, inputs="text", outputs="text")
 
 
 
 
 
 
 
 
 
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()