Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -58,20 +58,20 @@ def greet(modelpath1="",modelpath2="",modelpath3="",modelpath4="",modelpath5="")
|
|
58 |
|
59 |
return response_text
|
60 |
|
61 |
-
text1 = gr.
|
62 |
-
text2 = gr.
|
63 |
-
text3 = gr.
|
64 |
-
text4 = gr.
|
65 |
|
66 |
if __name__ == '__main__':
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
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 |
|