seawolf2357 commited on
Commit
a6549b1
โ€ข
1 Parent(s): e8bac0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -1
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)