Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,10 @@ HEADER = """<div style="text-align: center; margin-bottom: 20px;">
|
|
21 |
"""
|
22 |
|
23 |
custom_css = """
|
|
|
|
|
|
|
|
|
24 |
[aria-label="chatbot conversation"] * {
|
25 |
direction: rtl;
|
26 |
text-align: right;
|
@@ -78,13 +82,12 @@ chat_interface = gr.ChatInterface(
|
|
78 |
gr.Slider(minimum=0.0, maximum=1.0, value=0.6, step=0.1, label="Temperature"),
|
79 |
gr.Slider(minimum=0.0, maximum=2.0, value=1.1, step=0.05, label="Repetition penalty"),
|
80 |
],
|
81 |
-
examples=[["
|
82 |
-
example_icons=[["💡"]],
|
83 |
cache_examples=False,
|
84 |
theme="JohnSmith9982/small_and_pretty",
|
85 |
)
|
86 |
|
87 |
-
with gr.Blocks(fill_height=True, css=custom_css) as demo:
|
88 |
gr.HTML(HEADER)
|
89 |
chat_interface.render()
|
90 |
|
|
|
21 |
"""
|
22 |
|
23 |
custom_css = """
|
24 |
+
.gradio-container {
|
25 |
+
max-width: 800px;
|
26 |
+
margin: 0 auto;
|
27 |
+
}
|
28 |
[aria-label="chatbot conversation"] * {
|
29 |
direction: rtl;
|
30 |
text-align: right;
|
|
|
82 |
gr.Slider(minimum=0.0, maximum=1.0, value=0.6, step=0.1, label="Temperature"),
|
83 |
gr.Slider(minimum=0.0, maximum=2.0, value=1.1, step=0.05, label="Repetition penalty"),
|
84 |
],
|
85 |
+
examples=[["ما هى ال Autoregressive Models ؟"]],
|
|
|
86 |
cache_examples=False,
|
87 |
theme="JohnSmith9982/small_and_pretty",
|
88 |
)
|
89 |
|
90 |
+
with gr.Blocks(fill_height=True, fill_width=False, css=custom_css) as demo:
|
91 |
gr.HTML(HEADER)
|
92 |
chat_interface.render()
|
93 |
|