Spaces:
Runtime error
Runtime error
Added rtl + extended
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ def model_chat(query: Optional[str], history: Optional[History]) -> Generator[Tu
|
|
| 39 |
model='dicta-il/dictalm2.0-instruct',
|
| 40 |
messages=messages,
|
| 41 |
temperature=0.7,
|
| 42 |
-
max_tokens=
|
| 43 |
top_p=0.9,
|
| 44 |
stream=True
|
| 45 |
)
|
|
@@ -55,7 +55,7 @@ def model_chat(query: Optional[str], history: Optional[History]) -> Generator[Tu
|
|
| 55 |
with gr.Blocks() as demo:
|
| 56 |
gr.Markdown("""<center><font size=8>DictaLM2.0-Instruct Chat Demo</center>""")
|
| 57 |
|
| 58 |
-
chatbot = gr.Chatbot(label='dicta-il/dictalm2.0-instruct')
|
| 59 |
textbox = gr.Textbox(lines=2, label='Input')
|
| 60 |
|
| 61 |
with gr.Row():
|
|
|
|
| 39 |
model='dicta-il/dictalm2.0-instruct',
|
| 40 |
messages=messages,
|
| 41 |
temperature=0.7,
|
| 42 |
+
max_tokens=1024,
|
| 43 |
top_p=0.9,
|
| 44 |
stream=True
|
| 45 |
)
|
|
|
|
| 55 |
with gr.Blocks() as demo:
|
| 56 |
gr.Markdown("""<center><font size=8>DictaLM2.0-Instruct Chat Demo</center>""")
|
| 57 |
|
| 58 |
+
chatbot = gr.Chatbot(label='dicta-il/dictalm2.0-instruct', rtl=True)
|
| 59 |
textbox = gr.Textbox(lines=2, label='Input')
|
| 60 |
|
| 61 |
with gr.Row():
|