Spaces:
Running
Running
seawolf2357
commited on
Commit
โข
a6549b1
1
Parent(s):
e8bac0f
Update app.py
Browse files
app.py
CHANGED
@@ -59,6 +59,26 @@ async def respond(
|
|
59 |
pass
|
60 |
finally:
|
61 |
pass # ์คํธ๋ฆผ ์ข
๋ฃ ์ ์๋ฌด๊ฒ๋ ํ์ง ์์
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
if __name__ == "__main__":
|
64 |
-
demo.launch()
|
|
|
59 |
pass
|
60 |
finally:
|
61 |
pass # ์คํธ๋ฆผ ์ข
๋ฃ ์ ์๋ฌด๊ฒ๋ ํ์ง ์์
|
62 |
+
|
63 |
+
theme = "Nymbo/Nymbo_Theme"
|
64 |
+
|
65 |
+
css = """
|
66 |
+
footer {
|
67 |
+
visibility: hidden;
|
68 |
+
}
|
69 |
+
"""
|
70 |
+
|
71 |
+
demo = gr.ChatInterface(
|
72 |
+
css=css,
|
73 |
+
fn=respond,
|
74 |
+
theme=theme,
|
75 |
+
additional_inputs=[
|
76 |
+
gr.Textbox(value="AI Assistant Role", label="System message"),
|
77 |
+
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
78 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
79 |
+
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
|
80 |
+
]
|
81 |
+
)
|
82 |
|
83 |
if __name__ == "__main__":
|
84 |
+
demo.queue().launch(max_threads=20)
|