Spaces:
Runtime error
Runtime error
making the output simple
Browse files29 unmodified lines303132333435363729 unmodified lines#lets define how the output looks likeoutput_format=gr.Dataframe(row_count=(3,"dynamic"),col_count=(2,"dynamic"),label="label probabilities",headers=["label","probabilities"])#lets write something that accepts input as text and returns the most likely out come out of 3demo=gr.Interface(fn=model_classifier,29 unmodified lines303132333435363738394029 unmodified lines#lets define how the output looks like#output_format=gr.Dataframe(row_count=(3,"dynamic"),col_count=(2,"dynamic"),label="label probabilities",headers=["label","probabilities"])#the output looks like a json formatoutputs_format=gr.outputs.Textbox(label="label probabilities")#lets write something that accepts input as text and returns the most likely out come out of 3demo=gr.Interface(fn=model_classifier,
app.py+5-2