gojiteji commited on
Commit
73044d6
1 Parent(s): e0eb2a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -58,20 +58,20 @@ def greet(modelpath1="",modelpath2="",modelpath3="",modelpath4="",modelpath5="")
58
 
59
  return response_text
60
 
61
- text1 = gr.inputs.Textbox(placeholder="ower/modelname1", label="Input modelname like meta-llama/Llama-2-70b-hf",lines=1,optional=False)
62
- text2 = gr.inputs.Textbox(placeholder="ower/modelname2", label="model 2",lines=1,optional=False)
63
- text3 = gr.inputs.Textbox(placeholder="ower/modelname3", label="model 3",lines=1,optional=True)
64
- text4 = gr.inputs.Textbox(placeholder="ower/modelname4", label="model 4",lines=1,optional=True)
65
 
66
  if __name__ == '__main__':
67
- interFace = gr.Interface(fn=greet,
68
- inputs=[text1,text2,text3,text4],
69
- outputs=[gr.Markdown(value="")],
70
- title="LLM Comparer⚖️",
71
- description="Plsease copy and paste the owner name / model name from the Hugging Face model hub.\n The same input can produce different results, so please resubmit if the results are not ideal.",
72
- theme='finlaymacklon/smooth_slate',
73
- allow_flagging=False,
74
- )
75
-
76
- interFace.launch(share=False,enable_queue=False)
77
 
 
58
 
59
  return response_text
60
 
61
+ text1 = gr.Textbox(placeholder="ower/modelname1", label="Input modelname like meta-llama/Llama-2-70b-hf", max_lines=1, interactive=True)
62
+ text2 = gr.Textbox(placeholder="ower/modelname2", label="model 2", max_lines=1, interactive=True)
63
+ text3 = gr.Textbox(placeholder="ower/modelname3", label="model 3", max_lines=1, interactive=True)
64
+ text4 = gr.Textbox(placeholder="ower/modelname4", label="model 4", max_lines=1, interactive=True)
65
 
66
  if __name__ == '__main__':
67
+ interFace = gr.Interface(
68
+ fn=greet,
69
+ inputs=[text1, text2, text3, text4],
70
+ outputs=[gr.Markdown(value="")],
71
+ title="LLM Comparer⚖️",
72
+ description="Please copy and paste the owner name / model name from the Hugging Face model hub.\nThe same input can produce different results, so please resubmit if the results are not ideal.",
73
+ theme='finlaymacklon/smooth_slate',
74
+ allow_flagging=False
75
+ )
76
+ interFace.launch(share=False, enable_queue=False)
77