Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ gemma 10m context model
|
|
| 18 |
LICENSE = """
|
| 19 |
<p/>
|
| 20 |
---
|
| 21 |
-
|
| 22 |
"""
|
| 23 |
PLACEHOLDER = """
|
| 24 |
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
|
@@ -37,7 +37,7 @@ if torch.cuda.is_available():
|
|
| 37 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 38 |
tokenizer.use_default_system_prompt = False
|
| 39 |
|
| 40 |
-
chatbot=gr.Chatbot(height=650, placeholder=PLACEHOLDER, label='Gradio ChatInterface')
|
| 41 |
|
| 42 |
@spaces.GPU
|
| 43 |
def generate(
|
|
|
|
| 18 |
LICENSE = """
|
| 19 |
<p/>
|
| 20 |
---
|
| 21 |
+
|
| 22 |
"""
|
| 23 |
PLACEHOLDER = """
|
| 24 |
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
|
|
|
| 37 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 38 |
tokenizer.use_default_system_prompt = False
|
| 39 |
|
| 40 |
+
chatbot=gr.Chatbot(height=650, width=500, placeholder=PLACEHOLDER, label='Gradio ChatInterface')
|
| 41 |
|
| 42 |
@spaces.GPU
|
| 43 |
def generate(
|